Skip to content

Commit 95ae525

Browse files
committed
Remove: TabBarTheme: Not needed M3 vs M2 indicator size values, Flutter defaults to same values
1 parent d70c4da commit 95ae525

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/flex_sub_themes.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7835,6 +7835,7 @@ abstract final class FlexSubThemes {
78357835
/// variant.
78367836
final TabAlignment? tabAlignment,
78377837

7838+
// TODO(rydmike): Open issue, in 3.27 always linear even if elastic used.
78387839
/// Specifies the animation behavior of the tab indicator in a [TabBar].
78397840
///
78407841
/// If not defined, the tab indicator will animate linearly if
@@ -7915,8 +7916,7 @@ abstract final class FlexSubThemes {
79157916
unselectedLabelStyle: unselectedLabelStyle,
79167917
unselectedLabelColor: unselectedLabelColor,
79177918
//
7918-
indicatorSize: indicatorSize ??
7919-
(useM3 ? TabBarIndicatorSize.label : TabBarIndicatorSize.tab),
7919+
indicatorSize: indicatorSize,
79207920
indicatorAnimation: indicatorAnimation,
79217921
indicatorColor: indicatorColor,
79227922
indicator: (indicatorWeight != null || indicatorTopRadius != null)

0 commit comments

Comments
 (0)