File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,7 @@ class _MyHomePageState extends State<MyHomePage> {
3131 @override
3232 Widget build (BuildContext context) {
3333 return Scaffold (
34- appBar: AppBar (
35- title: Text (widget.title),
36- ),
37- body: _widgetList[_currentIndex],
34+ appBar: AppBar (title: Text (widget.title)),
3835 floatingActionButton: FloatingActionButton (
3936 onPressed: _incrementCounter,
4037 tooltip: 'Increment' ,
@@ -59,6 +56,7 @@ class _MyHomePageState extends State<MyHomePage> {
5956 icon: Icon (MyFlutterApp .user), label: 'Profile' ),
6057 ],
6158 ),
59+ body: Center (child: _widgetList[_currentIndex]),
6260 );
6361 }
6462
Original file line number Diff line number Diff line change @@ -11,13 +11,12 @@ class MyApp extends StatelessWidget {
1111 @override
1212 Widget build (BuildContext context) {
1313 return MaterialApp (
14- title: 'Flutter Demo ' ,
14+ title: 'Custom Icons with Bottom Navigation Bar ' ,
1515 theme: ThemeData (
1616 primarySwatch: Colors .blue,
1717 ),
18- home: const MyHomePage (title: 'Tech With Sam Tutorials' ),
18+ debugShowCheckedModeBanner: false ,
19+ home: const MyHomePage (title: 'Custom Icons x BottomNavBar' ),
1920 );
2021 }
2122}
22-
23-
You can’t perform that action at this time.
0 commit comments