File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import 'package:flutter/material.dart';
9
9
import 'package:flutter/rendering.dart' ;
10
10
import 'package:flutter_go/utils/shared_preferences.dart' ;
11
11
import 'package:flutter_go/views/first_page/first_page.dart' ;
12
+ import 'package:flutter_go/views/first_page/main_page.dart' ;
12
13
import 'package:flutter_go/views/widget_page/widget_page.dart' ;
13
14
import 'package:flutter_go/views/welcome_page/fourth_page.dart' ;
14
15
import 'package:flutter_go/views/collection_page/collection_page.dart' ;
@@ -60,7 +61,8 @@ class _MyHomePageState extends State<AppPage>
60
61
));
61
62
}
62
63
list
63
- ..add (FirstPage ())
64
+ // ..add(FirstPage())
65
+ ..add (MainPage ())
64
66
..add (WidgetPage (Provider .db))
65
67
..add (CollectionPage ())
66
68
..add (FourthPage ());
@@ -115,11 +117,18 @@ class _MyHomePageState extends State<AppPage>
115
117
}, (value) {}, () {});
116
118
}
117
119
120
+ renderAppBar (BuildContext context,Widget widget,int index) {
121
+ print ('renderAppBar=====>>>>>>${index }' );
122
+ if (index == 0 ) {
123
+ return null ;
124
+ }
125
+ return AppBar (title: buildSearchInput (context));
126
+ }
118
127
119
128
@override
120
129
Widget build (BuildContext context) {
121
130
return new Scaffold (
122
- appBar: new AppBar (title : buildSearchInput ( context) ),
131
+ appBar: renderAppBar ( context,widget,_currentIndex ),
123
132
body: list[_currentIndex],
124
133
bottomNavigationBar: BottomNavigationBar (
125
134
items: myTabs,
You can’t perform that action at this time.
0 commit comments