mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-09 18:10:29 +00:00
fix(ui): refine narrow layouts and enable tab swipes
This commit is contained in:
1 parent
e47a20a1bd
commit
c703c52cbc
17 files changed
+624
-182
No files matched your search
@@ -3,6 +3,7 @@ import 'package:flutter/widgets.dart';
|
||||
import '../../core/utils/breakpoints.dart';
|
||||
import '../theme/app_palette.dart';
|
||||
import 'secondary_navigation_pane.dart';
|
||||
import 'app_swipe_tabs.dart';
|
||||
|
||||
class ResponsiveNavigationItem<T> {
|
||||
const ResponsiveNavigationItem({required this.value, required this.label, this.icon, this.count});
|
||||
@@ -72,7 +73,14 @@ class ResponsiveNavigationLayout<T> extends StatelessWidget {
|
||||
onSelected: onSelected,
|
||||
reserveTopSafeArea: mobileHeader == null,
|
||||
),
|
||||
Expanded(child: child),
|
||||
Expanded(
|
||||
child: AppSwipeTabs<T>(
|
||||
values: items.map((item) => item.value).toList(growable: false),
|
||||
selectedValue: selectedValue,
|
||||
onSelected: onSelected,
|
||||
child: child,
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user