-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Marcelo Amaro
committed
Jan 14, 2025
1 parent
80e6971
commit 0ba9862
Showing
5 changed files
with
84 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
import '../../themes/colors/ds_colors.theme.dart'; | ||
import '../../themes/texts/styles/ds_body_text_style.theme.dart'; | ||
import '../../themes/texts/styles/ds_headline_small_text_style.theme.dart'; | ||
|
||
class DSTabBar extends StatelessWidget { | ||
final TabController? controller; | ||
final Function(int)? onTap; | ||
final List<Widget> tabs; | ||
|
||
const DSTabBar({ | ||
required this.tabs, | ||
super.key, | ||
this.controller, | ||
this.onTap, | ||
}); | ||
|
||
@override | ||
Widget build(BuildContext context) => TabBar( | ||
tabs: tabs, | ||
controller: controller, | ||
onTap: onTap, | ||
labelStyle: const DSHeadlineSmallTextStyle( | ||
color: DSColors.primaryNight, | ||
), | ||
unselectedLabelStyle: const DSBodyTextStyle( | ||
color: DSColors.neutralDarkCity, | ||
), | ||
dividerColor: DSColors.neutralMediumWave, | ||
indicatorSize: TabBarIndicatorSize.tab, | ||
indicatorWeight: 0.0, | ||
indicator: const UnderlineTabIndicator( | ||
borderSide: BorderSide( | ||
width: 3.0, | ||
color: DSColors.primaryDark, | ||
), | ||
), | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters