Skip to content

Commit f7f57d3

Browse files
committed
gfrating tested and completed
1 parent 38cdc59 commit f7f57d3

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

example/lib/main.dart

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,24 @@ class _MyHomePageState extends State<MyHomePage>
138138
backgroundColor: Colors.teal,
139139
// centerTitle: true,
140140
// leading: GFIconButton(icon: Icon(Icons.directions_bus), onPressed: (){}),
141-
title: const Text('UI Kit'),
141+
title:
142+
// const Text('UI Kit'),
143+
GFSegmentTabs(
144+
tabController: tabController,
145+
initialIndex: 0,
146+
length: 3,
147+
tabs: const <Widget>[
148+
Text(
149+
'Tab1',
150+
),
151+
Text(
152+
'Tab2',
153+
),
154+
Text(
155+
'Tab3',
156+
),
157+
],
158+
),
142159
// bottom: TabBar(
143160
// controller: tabController,
144161
// tabs: [
@@ -147,7 +164,7 @@ class _MyHomePageState extends State<MyHomePage>
147164
// Tab(icon: Icon(Icons.directions_bike)),
148165
// ],
149166
// ),
150-
searchBar: true,
167+
// searchBar: true,
151168
// searchHintText: "aaaaaaa",
152169
// searchHintStyle: TextStyle(fontSize: 18.0, color: Colors.redAccent),
153170
// searchStyle: TextStyle(fontSize: 10.0, color: Colors.green),

0 commit comments

Comments
 (0)