Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0cd4951

Browse files
updates
1 parent aa05d61 commit 0cd4951

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

‎lib/homepage.dart‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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

‎lib/main.dart‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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-

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /