Merge branch 'main' of hiddify-github:hiddify/hiddify-next
This commit is contained in:
@@ -106,18 +106,16 @@ class _CustomAdaptiveScaffold extends HookConsumerWidget {
|
||||
return Scaffold(
|
||||
key: RootScaffold.stateKey,
|
||||
drawer: Breakpoints.small.isActive(context)
|
||||
? SafeArea(
|
||||
child: Drawer(
|
||||
width: (MediaQuery.sizeOf(context).width * 0.88).clamp(0, 304),
|
||||
child: NavigationRail(
|
||||
extended: true,
|
||||
selectedIndex: selectedWithOffset(drawerDestinationRange),
|
||||
destinations: destinationsSlice(drawerDestinationRange)
|
||||
.map((dest) => AdaptiveScaffold.toRailDestination(dest))
|
||||
.toList(),
|
||||
onDestinationSelected: (index) =>
|
||||
selectWithOffset(index, drawerDestinationRange),
|
||||
),
|
||||
? Drawer(
|
||||
width: (MediaQuery.sizeOf(context).width * 0.88).clamp(0, 304),
|
||||
child: NavigationRail(
|
||||
extended: true,
|
||||
selectedIndex: selectedWithOffset(drawerDestinationRange),
|
||||
destinations: destinationsSlice(drawerDestinationRange)
|
||||
.map((dest) => AdaptiveScaffold.toRailDestination(dest))
|
||||
.toList(),
|
||||
onDestinationSelected: (index) =>
|
||||
selectWithOffset(index, drawerDestinationRange),
|
||||
),
|
||||
)
|
||||
: null,
|
||||
|
||||
@@ -21,9 +21,9 @@ class IntroPage extends HookConsumerWidget with PresLogger {
|
||||
|
||||
final isStarting = useState(false);
|
||||
|
||||
return SafeArea(
|
||||
child: Scaffold(
|
||||
body: CustomScrollView(
|
||||
return Scaffold(
|
||||
body: SafeArea(
|
||||
child: CustomScrollView(
|
||||
shrinkWrap: true,
|
||||
slivers: [
|
||||
SliverToBoxAdapter(
|
||||
|
||||
Reference in New Issue
Block a user