side rail initial

This commit is contained in:
Fabian Freund
2026-07-05 08:43:46 +02:00
parent 7931f66f5a
commit d83487325c
16 changed files with 1197 additions and 275 deletions
@@ -87,7 +87,23 @@ enum TabIntentOpenSetting { regular, private, isolated, ask }
enum TabDirection { newestFirst, oldestFirst }
enum TabBarPosition { top, bottom }
enum TabBarPosition {
top,
bottom,
left,
right;
/// Whether the tab bar is rendered as a vertical side rail (left/right)
/// rather than a horizontal bar (top/bottom).
bool get isVertical =>
this == TabBarPosition.left || this == TabBarPosition.right;
/// Whether the tab bar is rendered as a horizontal bar (top/bottom).
bool get isHorizontal => !isVertical;
/// Main axis along which the bar's content flows.
Axis get axis => isVertical ? Axis.vertical : Axis.horizontal;
}
enum TabBarLayout { withTitle, compact }
@@ -1246,6 +1246,8 @@ const _$TabBarSwipeActionEnumMap = {
const _$TabBarPositionEnumMap = {
TabBarPosition.top: 'top',
TabBarPosition.bottom: 'bottom',
TabBarPosition.left: 'left',
TabBarPosition.right: 'right',
};
const _$TabBarLayoutEnumMap = {