Post new fab

This commit is contained in:
2024-11-10 01:34:58 +08:00
parent fa142a5f89
commit 05425da913
8 changed files with 122 additions and 2 deletions

View File

@ -8,6 +8,7 @@ import 'package:surface/screens/auth/login.dart';
import 'package:surface/screens/auth/register.dart';
import 'package:surface/screens/explore.dart';
import 'package:surface/screens/home.dart';
import 'package:surface/screens/post/post_editor.dart';
import 'package:surface/widgets/navigation/app_scaffold.dart';
final appRouter = GoRouter(
@ -35,6 +36,18 @@ final appRouter = GoRouter(
),
],
),
ShellRoute(
builder: (context, state, child) => AppScaffold(
body: child,
),
routes: [
GoRoute(
path: '/post/write/:mode',
name: 'postEditor',
builder: (context, state) => const PostEditorScreen(),
),
],
),
ShellRoute(
builder: (context, state, child) => AppScaffold(
body: child,