mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-25 02:48:54 +01:00
Fix back button bypassing Done listener in account settings
This commit is contained in:
parent
6052d82047
commit
1fdf438956
1 changed files with 39 additions and 36 deletions
|
@ -423,7 +423,9 @@ class _AccountSettingsState extends State<AccountSettingsWidget> {
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildContent(BuildContext context) {
|
Widget _buildContent(BuildContext context) {
|
||||||
return CustomScrollView(
|
return WillPopScope(
|
||||||
|
onWillPop: () async => !_hasModified,
|
||||||
|
child: CustomScrollView(
|
||||||
slivers: [
|
slivers: [
|
||||||
SliverAppBar(
|
SliverAppBar(
|
||||||
pinned: true,
|
pinned: true,
|
||||||
|
@ -460,6 +462,7 @@ class _AccountSettingsState extends State<AccountSettingsWidget> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue