♻️ Move the post editor mode into editor itself

This commit is contained in:
2025-03-08 16:00:10 +08:00
parent 1c510d63fe
commit 5c483bd3b8
7 changed files with 155 additions and 156 deletions

View File

@ -66,10 +66,9 @@ final _appRoutes = [
builder: (context, state) => const ExploreScreen(),
routes: [
GoRoute(
path: '/write/:mode',
path: '/write',
name: 'postEditor',
builder: (context, state) => PostEditorScreen(
mode: state.pathParameters['mode']!,
postEditId: int.tryParse(
state.uri.queryParameters['editing'] ?? '',
),