opt. proj struct

This commit is contained in:
LollipopKit
2023-01-29 16:56:40 +08:00
parent 49f9b0b179
commit f3c670d82c
15 changed files with 266 additions and 249 deletions

View File

@@ -388,8 +388,10 @@ class _ServerPageState extends State<ServerPage>
child: Text(_s.ok),
),
TextButton(
onPressed: () =>
AppRoute(const SnippetEditPage(), 'edit snippet').go(context),
onPressed: () {
Navigator.of(context).pop();
AppRoute(const SnippetEditPage(), 'edit snippet').go(context);
},
child: Text(_s.addOne),
)
],