@@ -60,10 +60,7 @@ class _DemoHomeScreenState extends State<DemoHomeScreen> {
6060 if (constraints.maxWidth < 600 ) {
6161 // Use BottomNavigationBar for smaller screens
6262 return Scaffold (
63- body: IndexedStack (
64- index: _selectedIndex,
65- children: _demoPages,
66- ),
63+ body: IndexedStack (index: _selectedIndex, children: _demoPages),
6764 bottomNavigationBar: BottomNavigationBar (
6865 items: < BottomNavigationBarItem > [
6966 const BottomNavigationBarItem (
@@ -81,9 +78,7 @@ class _DemoHomeScreenState extends State<DemoHomeScreen> {
8178 BottomNavigationBarItem (
8279 icon: RichText (
8380 text: const TextSpan (
84- style: TextStyle (
85- fontSize: 24.0 ,
86- ),
81+ style: TextStyle (fontSize: 24.0 ),
8782 text: '🍌' ,
8883 ),
8984 ),
@@ -117,19 +112,20 @@ class _DemoHomeScreenState extends State<DemoHomeScreen> {
117112 const NavigationRailDestination (
118113 padding: EdgeInsets .symmetric (vertical: 8.0 ),
119114 icon: Icon (Icons .photo_library),
120- label: Text ('Multimodal\n Input ' , textAlign: TextAlign .center),
115+ label: Text ('Multimodal' , textAlign: TextAlign .center),
121116 ),
122117 NavigationRailDestination (
123118 padding: const EdgeInsets .symmetric (vertical: 8.0 ),
124119 icon: RichText (
125120 text: const TextSpan (
126- style: TextStyle (
127- fontSize: 24.0 ,
128- ),
121+ style: TextStyle (fontSize: 24.0 ),
129122 text: '🍌' ,
130123 ),
131124 ),
132- label: const Text ('Nano\n Banana' , textAlign: TextAlign .center),
125+ label: const Text (
126+ 'Nano\n Banana' ,
127+ textAlign: TextAlign .center,
128+ ),
133129 ),
134130 ],
135131 ),
@@ -147,4 +143,4 @@ class _DemoHomeScreenState extends State<DemoHomeScreen> {
147143 },
148144 );
149145 }
150- }
146+ }
0 commit comments