@@ -173,8 +173,8 @@ class _GFSegmentTabsState extends State<GFSegmentTabs> {
173173 height: widget.height ?? 28 ,
174174 width: widget.width ?? 240 ,
175175 decoration: BoxDecoration (
176- border: widget.border ??
177- Border .all (color: GFColors .getGFColor ( GFColor .primary) , width: 1 ),
176+ border:
177+ widget.border ?? Border .all (color: GFColors .PRIMARY , width: 1 ),
178178 borderRadius: widget.borderRadius ?? BorderRadius .circular (2 ),
179179 ),
180180 child: DefaultTabController (
@@ -186,32 +186,24 @@ class _GFSegmentTabsState extends State<GFSegmentTabs> {
186186 color: widget.tabBarColor ?? Colors .transparent,
187187 child: TabBar (
188188 controller: widget.tabController,
189- labelColor:
190- widget.labelColor ?? GFColors .getGFColor (GFColor .white),
191- unselectedLabelColor: widget.unselectedLabelColor ??
192- GFColors .getGFColor (GFColor .primary),
189+ labelColor: widget.labelColor ?? GFColors .WHITE ,
190+ unselectedLabelColor:
191+ widget.unselectedLabelColor ?? GFColors .PRIMARY ,
193192 labelStyle: widget.labelStyle ?? const TextStyle (fontSize: 12 ),
194193 unselectedLabelStyle:
195194 widget.unselectedLabelStyle ?? const TextStyle (fontSize: 12 ),
196- indicatorColor: widget.indicatorColor == null
197- ? GFColors .getGFColor (GFColor .primary)
198- : widget.indicatorColor,
195+ indicatorColor: widget.indicatorColor ?? GFColors .PRIMARY ,
199196 indicatorSize: widget.indicatorSize,
200- indicator: widget.indicator == null
201- ? BoxDecoration (
202- color: widget.indicatorColor == null
203- ? GFColors .getGFColor (GFColor .primary)
204- : widget.indicatorColor,
205- border: Border .all (
206- color: widget.indicatorColor == null
207- ? Colors .transparent
208- : widget.indicatorColor,
209- width: 2 ),
210- borderRadius: widget.borderRadius == null
211- ? BorderRadius .circular (0 )
212- : widget.borderRadius,
213- )
214- : widget.indicator,
197+ indicator: widget.indicator ??
198+ BoxDecoration (
199+ color: widget.indicatorColor ?? GFColors .PRIMARY ,
200+ border: Border .all (
201+ color: widget.indicatorColor ?? Colors .transparent,
202+ width: 2 ),
203+ borderRadius: widget.borderRadius == null
204+ ? BorderRadius .circular (0 )
205+ : widget.borderRadius,
206+ ),
215207 indicatorPadding: widget.indicatorPadding,
216208 indicatorWeight: widget.indicatorWeight,
217209 tabs: widget.tabs,
0 commit comments