@@ -15,40 +15,39 @@ class TutorialLayout extends DocLayout {
1515
1616 @override
1717 Component buildBody (Page page, Component child) {
18- page. apply (
19- data : {
20- 'page ': {
21- 'showBanner' : false ,
22- //TODO(schultek): Extract the real pages in some way.
23- 'navigationEntries' : [
24- { 'type ': 'divider ' , 'title ' : 'Introdution to Flutter UI ' },
25- {'title' : 'Create a Flutter app ' , 'path' : '/fwe0 ' },
26- {'title' : 'Widget fundamentals ' , 'path' : '/fwe1 ' },
27- { 'title ': 'Layout widgets on a screen ' , 'path ' : '/fwe2 ' },
28- {'title' : 'FWE Testing Page ' , 'path' : '/fwe ' },
29- {'title' : 'Devtools ' , 'path' : '/fwe3 ' },
30- {'title' : 'Handle user input ' , 'path' : '/fwe4 ' },
31- { 'type' : 'divider' , 'title ' : 'State in Flutter apps ' },
32- { 'title ': 'Set up a new project ' , 'path ' : '/fwe5 ' },
33- {'title' : 'Make Http Requests ' , 'path' : '/fwe6 ' },
34- {
35- 'title' : 'Use ChangeNotifier to update app state' ,
36- 'path' : '/fwe7' ,
37- },
38- {
39- 'title' : 'Use ListenableBuilder to update app UI' ,
40- 'path' : '/fwe8' ,
41- },
42- { 'type ': 'divider' , 'title' : 'Flutter UI 102' },
43- { 'title ': 'Set up your project' , 'path' : '/fwe9' } ,
44- { 'title ': 'LayoutBuilder and adaptive layouts' , 'path' : '/fwe10' } ,
45- { 'title ': 'Scrolling and slivers' , 'path' : '/fwe11' } ,
46- { 'title' : 'Stack based navigation' , 'path' : '/fwe12' },
47- ] ,
18+ //TODO(schultek): Extract the real pages in some way.
19+ const navigationEntries = [
20+ { 'type' : 'divider' , 'title ': 'Introdution to Flutter UI' },
21+ { 'title' : 'Create a Flutter app' , 'path' : '/fwe0' } ,
22+ { 'title' : 'Widget fundamentals' , 'path' : '/fwe1' },
23+ { 'title' : 'Layout widgets on a screen' , 'path' : '/fwe2' },
24+ { 'title ': 'FWE Testing Page ' , 'path ' : '/fwe ' },
25+ {'title' : 'Devtools ' , 'path' : '/fwe3 ' },
26+ {'title' : 'Handle user input ' , 'path' : '/fwe4 ' },
27+ { 'type ': 'divider ' , 'title ' : 'State in Flutter apps ' },
28+ {'title' : 'Set up a new project ' , 'path' : '/fwe5 ' },
29+ {'title' : 'Make Http Requests ' , 'path' : '/fwe6 ' },
30+ {'title' : 'Use ChangeNotifier to update app state ' , 'path' : '/fwe7 ' },
31+ { 'title' : 'Use ListenableBuilder to update app UI' , 'path ' : '/fwe8 ' },
32+ { 'type ': 'divider ' , 'title ' : 'Flutter UI 102 ' },
33+ {'title' : 'Set up your project ' , 'path' : '/fwe9 ' },
34+ { 'title' : 'LayoutBuilder and adaptive layouts' , 'path' : '/fwe10' },
35+ { 'title' : 'Scrolling and slivers' , 'path' : '/fwe11' } ,
36+ { 'title' : 'Stack based navigation' , 'path' : '/fwe12' } ,
37+ ];
38+
39+ return super . buildBody (
40+ page.. apply (
41+ data : {
42+ 'page ': {
43+ 'showBanner ': false ,
44+ 'navigationCollectionTitle ': 'Flutter Fundamentals' ,
45+ 'navigationEntries ': navigationEntries ,
46+ },
47+ 'sidenav' : null ,
4848 },
49- 'sidenav' : null ,
50- } ,
49+ ) ,
50+ child ,
5151 );
52- return super .buildBody (page, child);
5352 }
5453}
0 commit comments