This commit is contained in:
2025-01-26 18:36:35 +08:00
parent 5a11168f98
commit ef8dc9e8d4
3 changed files with 37 additions and 32 deletions

View File

@@ -206,12 +206,14 @@ class _SettingsPageState extends State<SettingsPage> implements PopEntry {
], ],
); );
} else { } else {
return LayoutBuilder(
builder: (context, constrains) {
return Stack( return Stack(
children: [ children: [
Positioned.fill(child: buildLeft()), Positioned.fill(child: buildLeft()),
Positioned( Positioned(
left: offset, left: offset,
width: MediaQuery.of(context).size.width, width: constrains.maxWidth,
top: 0, top: 0,
bottom: 0, bottom: 0,
child: Listener( child: Listener(
@@ -238,6 +240,8 @@ class _SettingsPageState extends State<SettingsPage> implements PopEntry {
) )
], ],
); );
},
);
} }
} }

View File

@@ -1083,13 +1083,13 @@ packages:
source: hosted source: hosted
version: "6.5.0" version: "6.5.0"
yaml: yaml:
dependency: transitive dependency: "direct main"
description: description:
name: yaml name: yaml
sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.1.2" version: "3.1.3"
zip_flutter: zip_flutter:
dependency: "direct main" dependency: "direct main"
description: description:

View File

@@ -75,6 +75,7 @@ dependencies:
flex_seed_scheme: ^3.5.0 flex_seed_scheme: ^3.5.0
flutter_localizations: flutter_localizations:
sdk: flutter sdk: flutter
yaml: ^3.1.3
dev_dependencies: dev_dependencies:
flutter_test: flutter_test: