Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:stac/src/parsers/widgets/stac_double/stac_double.dart';
import 'package:stac/src/parsers/widgets/stac_edge_insets/stac_edge_insets.dart';
import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart';
import 'package:stac/src/parsers/widgets/stac_box_decoration/stac_box_decoration.dart';
import 'package:stac/src/utils/stac_scroll_physics.dart';

export 'stac_tab_bar_parser.dart';
Expand All @@ -22,6 +23,7 @@ abstract class StacTabBar with _$StacTabBar {
@Default(true) bool automaticIndicatorColorAdjustment,
@Default(StacDouble(2.0)) StacDouble indicatorWeight,
StacEdgeInsets? indicatorPadding,
StacBoxDecoration? indicator,
TabBarIndicatorSize? indicatorSize,
String? labelColor,
StacTextStyle? labelStyle,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import 'package:stac/src/parsers/widgets/stac_tab_bar/stac_tab_bar.dart';
import 'package:stac/src/parsers/widgets/stac_text_style/stac_text_style.dart';
import 'package:stac/src/utils/color_utils.dart';
import 'package:stac/src/utils/widget_type.dart';
import 'package:stac/src/parsers/widgets/stac_box_decoration/stac_box_decoration.dart';
import 'package:stac_framework/stac_framework.dart';

class StacTabBarParser extends StacParser<StacTabBar> {
Expand Down Expand Up @@ -33,6 +34,7 @@ class StacTabBarParser extends StacParser<StacTabBar> {
model.automaticIndicatorColorAdjustment,
indicatorWeight: model.indicatorWeight.parse,
indicatorPadding: model.indicatorPadding.parse,
indicator: model.indicator?.parse(context),
indicatorSize: model.indicatorSize,
labelColor: model.labelColor.toColor(context),
labelStyle: model.labelStyle?.parse(context),
Expand Down
1 change: 1 addition & 0 deletions website/docs/widgets/tab_bar.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ To know more about the TabBar widget in Flutter, refer to the [official document
| automaticIndicatorColorAdjustment | `bool` | Whether to automatically adjust the indicator color. Defaults to `true`. |
| indicatorWeight | `double` | The thickness of the tab indicator. Defaults to `2.0`. |
| indicatorPadding | `StacEdgeInsets?` | The padding for the tab indicator. |
| indicator | `StacBoxDecoration?` | The decoration for the tab indicator. |
| indicatorSize | `TabBarIndicatorSize?` | The size of the tab indicator. |
| labelColor | `String?` | The color of the selected tab label. |
| labelStyle | `StacTextStyle?` | The text style of the selected tab label. |
Expand Down