fix: new issue route priority

This commit is contained in:
Rongjian Zhang 2022-10-05 01:40:03 +08:00
parent f7eb0e6f62
commit 3953544d55
1 changed files with 13 additions and 13 deletions

View File

@ -228,6 +228,13 @@ final router = GoRouter(
state.params['name']!, state.params['name']!,
), ),
routes: [ routes: [
GoRoute(
path: 'new',
builder: (context, state) => GhIssueFormScreen(
state.params['owner']!,
state.params['name']!,
),
),
GoRoute( GoRoute(
path: ':number', path: ':number',
builder: (context, state) => GhIssueScreen( builder: (context, state) => GhIssueScreen(
@ -236,13 +243,6 @@ final router = GoRouter(
int.parse(state.params['number']!), int.parse(state.params['number']!),
), ),
), ),
GoRoute(
path: 'new',
builder: (context, state) => GhIssueFormScreen(
state.params['owner']!,
state.params['name']!,
),
),
], ],
), ),
GoRoute( GoRoute(
@ -359,6 +359,12 @@ final router = GoRouter(
prefix: state.queryParams['prefix'], prefix: state.queryParams['prefix'],
), ),
routes: [ routes: [
GoRoute(
path: 'new',
builder: (context, state) => GlIssueFormScreen(
int.parse(state.params['id']!),
),
),
GoRoute( GoRoute(
path: ':iid', path: ':iid',
builder: (context, state) => GlIssueScreen( builder: (context, state) => GlIssueScreen(
@ -366,12 +372,6 @@ final router = GoRouter(
int.parse(state.params['iid']!), int.parse(state.params['iid']!),
), ),
), ),
GoRoute(
path: 'new',
builder: (context, state) => GlIssueFormScreen(
int.parse(state.params['id']!),
),
),
]), ]),
GoRoute( GoRoute(
path: 'merge_requests', path: 'merge_requests',