mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
Support chapter groups.
This commit is contained in:
@@ -274,6 +274,7 @@ class AppTabBar extends StatefulWidget {
|
||||
this.controller,
|
||||
required this.tabs,
|
||||
this.actionButton,
|
||||
this.withUnderLine = true,
|
||||
});
|
||||
|
||||
final TabController? controller;
|
||||
@@ -282,6 +283,8 @@ class AppTabBar extends StatefulWidget {
|
||||
|
||||
final Widget? actionButton;
|
||||
|
||||
final bool withUnderLine;
|
||||
|
||||
@override
|
||||
State<AppTabBar> createState() => _AppTabBarState();
|
||||
}
|
||||
@@ -396,14 +399,16 @@ class _AppTabBarState extends State<AppTabBar> {
|
||||
key: tabBarKey,
|
||||
height: _kTabHeight,
|
||||
width: double.infinity,
|
||||
decoration: BoxDecoration(
|
||||
border: Border(
|
||||
bottom: BorderSide(
|
||||
color: context.colorScheme.outlineVariant,
|
||||
width: 0.6,
|
||||
),
|
||||
),
|
||||
),
|
||||
decoration: widget.withUnderLine
|
||||
? BoxDecoration(
|
||||
border: Border(
|
||||
bottom: BorderSide(
|
||||
color: context.colorScheme.outlineVariant,
|
||||
width: 0.6,
|
||||
),
|
||||
),
|
||||
)
|
||||
: null,
|
||||
child: widget.tabs.isEmpty ? const SizedBox() : child,
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user