@@ -41,7 +41,7 @@ class SliverMultiTabberBuilder extends HookWidget {
4141 child: Align (
4242 alignment: Alignment .centerLeft,
4343 child: SizedBox (
44- height: context.textScaler.clamp (maxScaleFactor: 2 ).scale (40 ),
44+ height: context.textScaler.clamp (maxScaleFactor: 2 ).scale (50 ),
4545 child: _TabBarWidget (
4646 tabs: tabs,
4747 scrollController: scrollController,
@@ -51,7 +51,7 @@ class SliverMultiTabberBuilder extends HookWidget {
5151 ),
5252 ),
5353 ),
54- height: context.textScaler.clamp (maxScaleFactor: 2 ).scale (40 ),
54+ height: context.textScaler.clamp (maxScaleFactor: 2 ).scale (50 ),
5555 ),
5656 ),
5757 // Add each tab's content
@@ -121,36 +121,37 @@ class _TabBarWidget extends HookConsumerWidget {
121121 labelPadding: const EdgeInsets .symmetric (horizontal: NavigationTabViewConfig .smallerPadding),
122122 onTap: onTabTap,
123123 isScrollable: true ,
124- padding: EdgeInsets .zero,
124+ padding: const EdgeInsets .only (
125+ left: MapViewBottomSheetConfig .horizontalPadding - NavigationTabViewConfig .smallerPadding,
126+ bottom: NavigationTabViewConfig .smallerPadding * 1.5 ,
127+ ),
125128 indicatorColor: Colors .transparent,
129+ splashBorderRadius: BorderRadius .circular (NavigationTabViewConfig .radius),
126130 dividerHeight: 0 ,
127131 tabAlignment: TabAlignment .start,
128132 tabs: List .generate (
129133 tabs.length,
130- (index) => Container (
131- key: ValueKey ("tab_$index " ),
132- margin: EdgeInsets .only (
133- bottom: NavigationTabViewConfig .smallerPadding * 1.5 ,
134- left: index == 0
135- ? MapViewBottomSheetConfig .horizontalPadding - NavigationTabViewConfig .smallerPadding
136- : 0 ,
137- ),
138- padding: const EdgeInsets .symmetric (
139- horizontal: NavigationTabViewConfig .universalPadding,
140- vertical: NavigationTabViewConfig .tinyPadding,
141- ),
142- decoration: BoxDecoration (
143- color: index == selectedTabIndex.value
144- ? context.colorScheme.primaryContainer
145- : context.colorScheme.surfaceTint,
146- borderRadius: BorderRadius .circular (NavigationTabViewConfig .radius),
147- ),
148- child: Text (
149- tabs[index].title,
150- textAlign: TextAlign .center,
151- style: TextStyle (
152- fontWeight: index == selectedTabIndex.value ? FontWeight .bold : FontWeight .normal,
153- color: index == selectedTabIndex.value ? Colors .white : Colors .black,
134+ (index) => Tab (
135+ height: 40 ,
136+ child: Container (
137+ key: ValueKey ("tab_$index " ),
138+ padding: const EdgeInsets .symmetric (
139+ horizontal: NavigationTabViewConfig .universalPadding,
140+ vertical: NavigationTabViewConfig .tinyPadding,
141+ ),
142+ decoration: BoxDecoration (
143+ color: index == selectedTabIndex.value
144+ ? context.colorScheme.primaryContainer
145+ : context.colorScheme.surfaceTint,
146+ borderRadius: BorderRadius .circular (NavigationTabViewConfig .radius),
147+ ),
148+ child: Text (
149+ tabs[index].title,
150+ textAlign: TextAlign .center,
151+ style: TextStyle (
152+ fontWeight: index == selectedTabIndex.value ? FontWeight .bold : FontWeight .normal,
153+ color: index == selectedTabIndex.value ? Colors .white : Colors .black,
154+ ),
154155 ),
155156 ),
156157 ),
0 commit comments