From dd757338817b21773ccb9292e00d814c8b4a43ee Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Sat, 23 Nov 2024 10:05:20 +0800 Subject: [PATCH] opt: list sheet Signed-off-by: bggRGjQaUbCoE --- lib/common/widgets/list_sheet.dart | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/lib/common/widgets/list_sheet.dart b/lib/common/widgets/list_sheet.dart index e7af75ca..9489fbee 100644 --- a/lib/common/widgets/list_sheet.dart +++ b/lib/common/widgets/list_sheet.dart @@ -383,14 +383,17 @@ class _ListSheetContentState extends State color: Theme.of(context).dividerColor.withOpacity(0.1), ), if (_isList) - TabBar( - controller: _ctr, - isScrollable: true, - tabs: (widget.season.sections as List) - .map((item) => Tab(text: item.title)) - .toList(), - dividerHeight: 1, - dividerColor: Theme.of(context).dividerColor.withOpacity(0.1), + Material( + child: TabBar( + controller: _ctr, + padding: const EdgeInsets.only(right: 60), + isScrollable: true, + tabs: (widget.season.sections as List) + .map((item) => Tab(text: item.title)) + .toList(), + dividerHeight: 1, + dividerColor: Theme.of(context).dividerColor.withOpacity(0.1), + ), ), Expanded( child: _isList