Fix deeplink issue where dialogs would render on top of collections view
This commit is contained in:
parent
e974ce8ca0
commit
00847778f5
@ -63,7 +63,7 @@ struct WonderousWidgetView : View {
|
|||||||
content.padding(16)
|
content.padding(16)
|
||||||
}
|
}
|
||||||
.widgetBackground(Color.darkGrey)
|
.widgetBackground(Color.darkGrey)
|
||||||
.widgetURL(URL(string: "wonderous:///collection"))
|
.widgetURL(URL(string: "wonderous:///home/collection"))
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,11 @@ final appRouter = GoRouter(
|
|||||||
},
|
},
|
||||||
routes: [
|
routes: [
|
||||||
AppRoute(ScreenPaths.splash, (_) => Container(color: $styles.colors.greyStrong)), // This will be hidden
|
AppRoute(ScreenPaths.splash, (_) => Container(color: $styles.colors.greyStrong)), // This will be hidden
|
||||||
AppRoute(ScreenPaths.home, (_) => HomeScreen()),
|
AppRoute(ScreenPaths.home, (_) => HomeScreen(), routes: [
|
||||||
|
AppRoute('collection', (s) {
|
||||||
|
return CollectionScreen(fromId: s.queryParams['id'] ?? '');
|
||||||
|
}),
|
||||||
|
]),
|
||||||
AppRoute(ScreenPaths.intro, (_) => IntroScreen()),
|
AppRoute(ScreenPaths.intro, (_) => IntroScreen()),
|
||||||
AppRoute('/wonder/:type', (s) {
|
AppRoute('/wonder/:type', (s) {
|
||||||
int tab = int.tryParse(s.queryParams['t'] ?? '') ?? 0;
|
int tab = int.tryParse(s.queryParams['t'] ?? '') ?? 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user