mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
opt.: use new routes
This commit is contained in:
@@ -11,7 +11,6 @@ import '../../data/model/server/snippet.dart';
|
||||
import '../../data/provider/snippet.dart';
|
||||
import '../../data/res/ui.dart';
|
||||
import '../../locator.dart';
|
||||
import '../../view/page/snippet/edit.dart';
|
||||
import '../../view/widget/picker.dart';
|
||||
import '../persistant_store.dart';
|
||||
import '../route.dart';
|
||||
@@ -146,7 +145,7 @@ void showSnippetDialog(
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
context.pop();
|
||||
AppRoute(const SnippetEditPage(), 'edit snippet').go(context);
|
||||
AppRoute.snippetEdit().go(context);
|
||||
},
|
||||
child: Text(s.add),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user