mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 23:02:43 +01:00
source settings (add/edit)
This commit is contained in:
@@ -8,6 +8,7 @@ import 'screens/playlist_screen.dart';
|
||||
import 'screens/preload_screen.dart';
|
||||
import 'screens/root_shell_screen.dart';
|
||||
import 'screens/settings_screen.dart';
|
||||
import 'screens/settings_source_screen.dart';
|
||||
|
||||
final router = GoRouter(
|
||||
initialLocation: '/preload',
|
||||
@@ -50,5 +51,12 @@ final router = GoRouter(
|
||||
path: '/settings',
|
||||
builder: (context, state) => SettingsScreen(),
|
||||
),
|
||||
GoRoute(
|
||||
path: '/sources/:id',
|
||||
builder: (context, state) {
|
||||
final id = state.pathParameters['id'];
|
||||
return SettingsSourceScreen(id: id == 'add' ? null : int.parse(id!));
|
||||
},
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user