@@ -66,14 +66,13 @@ class _State extends State<CustomAppBarDemo>
6666 body: TabBarView (
6767 physics: NeverScrollableScrollPhysics (),
6868 children: items
69- .map ((i) =>
70- i.title == 'Discovery'
71- ? paletteBody ()
72- : Center (
73- child: Text (
74- '<\t\t ${i .title }\t\t >' ,
75- style: TextStyle (fontSize: 30 ),
76- )))
69+ .map ((i) => i.title == 'Discovery'
70+ ? paletteBody ()
71+ : Center (
72+ child: Text (
73+ '<\t\t ${i .title }\t\t >' ,
74+ style: TextStyle (fontSize: 30 ),
75+ )))
7776 .toList (growable: false ),
7877 ),
7978 bottomNavigationBar: StyleProvider (
@@ -89,12 +88,12 @@ class _State extends State<CustomAppBarDemo>
8988 TabItem (title: '2019' , icon: Icons .link),
9089 TabItem (
9190 icon: Container (
92- decoration: BoxDecoration (
93- shape: BoxShape .circle,
94- color: Color (0xFFFF5722 ),
95- ),
96- child: Icon (Icons .add, color: Colors .white, size: 40 ),
97- )),
91+ decoration: BoxDecoration (
92+ shape: BoxShape .circle,
93+ color: Color (0xFFFF5722 ),
94+ ),
95+ child: Icon (Icons .add, color: Colors .white, size: 40 ),
96+ )),
9897 TabItem (title: "2020" , icon: Icons .work),
9998 ],
10099 backgroundColor: _tabBackgroundColor,
@@ -141,11 +140,10 @@ class _State extends State<CustomAppBarDemo>
141140 mainAxisSpacing: 1 ,
142141 crossAxisSpacing: 1 ,
143142 children: paletteColors
144- .map ((c) =>
145- GestureDetector (
146- child: ColorItemView (c),
147- onTap: () => _onColorChanged (c),
148- ))
143+ .map ((c) => GestureDetector (
144+ child: ColorItemView (c),
145+ onTap: () => _onColorChanged (c),
146+ ))
149147 .toList (),
150148 );
151149 }
0 commit comments