refactor(desktop): reorganize workspace panels and navigation
Gitea CI / Windows x64 and Android (pull_request) Successful in 16m21s
Gitea CI / Gitea CI passed (pull_request) Successful in 3s

This commit is contained in:
lingjhf committed 2026-10-06 12:11:59 +08:00
1 parent 826745b407
commit 1f73765745
92 files changed
+5811 -2650

No files matched your search

+18 -1
View File
@@ -4,6 +4,7 @@ import 'package:go_router/go_router.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
import '../../features/projects/projects_page.dart';
import '../../features/settings/settings_page.dart';
part 'app_router.g.dart';
@@ -12,7 +13,23 @@ part 'app_router.g.dart';
GoRouter appRouter(Ref ref) {
final router = GoRouter(
routes: [
GoRoute(path: '/', builder: (context, state) => const EditingPage()),
GoRoute(
path: '/',
builder: (context, state) => const EditingPage(),
routes: [
GoRoute(
path: 'settings',
builder: (context, state) => SettingsPage(
initialTab:
(int.tryParse(state.uri.queryParameters['tab'] ?? '') ?? 0)
.clamp(0, 2),
workspace: state.extra is (String, String)
? state.extra as (String, String)
: null,
),
),
],
),
],
errorBuilder: (context, state) => Scaffold(
body: Center(
+1 -1
View File
@@ -48,4 +48,4 @@ final class AppRouterProvider
}
}
String _$appRouterHash() => r'ebb3f9239a43568767def98552081806bd614bb4';
String _$appRouterHash() => r'00e948f9d82c1f07ecdfc62b3c1ec833cb03edfe';