mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
fix #158
This commit is contained in:
@@ -206,37 +206,41 @@ class _SettingsPageState extends State<SettingsPage> implements PopEntry {
|
|||||||
],
|
],
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return Stack(
|
return LayoutBuilder(
|
||||||
children: [
|
builder: (context, constrains) {
|
||||||
Positioned.fill(child: buildLeft()),
|
return Stack(
|
||||||
Positioned(
|
children: [
|
||||||
left: offset,
|
Positioned.fill(child: buildLeft()),
|
||||||
width: MediaQuery.of(context).size.width,
|
Positioned(
|
||||||
top: 0,
|
left: offset,
|
||||||
bottom: 0,
|
width: constrains.maxWidth,
|
||||||
child: Listener(
|
top: 0,
|
||||||
onPointerDown: handlePointerDown,
|
bottom: 0,
|
||||||
child: AnimatedSwitcher(
|
child: Listener(
|
||||||
duration: const Duration(milliseconds: 200),
|
onPointerDown: handlePointerDown,
|
||||||
switchInCurve: Curves.fastOutSlowIn,
|
child: AnimatedSwitcher(
|
||||||
switchOutCurve: Curves.fastOutSlowIn,
|
duration: const Duration(milliseconds: 200),
|
||||||
transitionBuilder: (child, animation) {
|
switchInCurve: Curves.fastOutSlowIn,
|
||||||
var tween = Tween<Offset>(
|
switchOutCurve: Curves.fastOutSlowIn,
|
||||||
begin: const Offset(1, 0), end: const Offset(0, 0));
|
transitionBuilder: (child, animation) {
|
||||||
|
var tween = Tween<Offset>(
|
||||||
|
begin: const Offset(1, 0), end: const Offset(0, 0));
|
||||||
|
|
||||||
return SlideTransition(
|
return SlideTransition(
|
||||||
position: tween.animate(animation),
|
position: tween.animate(animation),
|
||||||
child: child,
|
child: child,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: Material(
|
child: Material(
|
||||||
key: ValueKey(currentPage),
|
key: ValueKey(currentPage),
|
||||||
child: buildRight(),
|
child: buildRight(),
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
)
|
||||||
),
|
],
|
||||||
)
|
);
|
||||||
],
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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:
|
||||||
|
@@ -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:
|
||||||
|
Reference in New Issue
Block a user