Fix divider width in scrollable TabBar for Material 3 and add dividerHeight parameter (#123127)

Fix divider width in scrollable `TabBar` for  Material 3 and add `dividerHeight` parameter
This commit is contained in:
Taha Tesser
2023-03-28 01:52:59 +03:00
committed by GitHub
parent d6287cc417
commit 3512c2cd76
6 changed files with 171 additions and 74 deletions

View File

@@ -20,6 +20,9 @@ class _${blockName}PrimaryDefaultsM3 extends TabBarTheme {
late final ColorScheme _colors = Theme.of(context).colorScheme;
late final TextTheme _textTheme = Theme.of(context).textTheme;
@override
double? get dividerHeight => ${tokens['md.comp.primary-navigation-tab.divider.height']};
@override
Color? get dividerColor => ${componentColor("md.comp.primary-navigation-tab.divider")};
@@ -81,6 +84,9 @@ class _${blockName}SecondaryDefaultsM3 extends TabBarTheme {
@override
Color? get dividerColor => ${componentColor("md.comp.secondary-navigation-tab.divider")};
@override
double? get dividerHeight => ${tokens['md.comp.primary-navigation-tab.divider.height']};
@override
Color? get indicatorColor => ${componentColor("md.comp.primary-navigation-tab.active-indicator")};