fix: pull page redirect
This commit is contained in:
parent
61d5a3e846
commit
7b51747576
|
@ -253,32 +253,25 @@ final router = GoRouter(
|
|||
),
|
||||
),
|
||||
GoRoute(
|
||||
path: 'pull',
|
||||
redirect: (_, state) =>
|
||||
'/github/${state.params['owner']!}/${state.params['name']!}/pulls',
|
||||
path: 'pull/:number',
|
||||
builder: (context, state) => GhIssueScreen(
|
||||
state.params['owner']!,
|
||||
state.params['name']!,
|
||||
int.parse(state.params['number']!),
|
||||
),
|
||||
routes: [
|
||||
GoRoute(
|
||||
path: ':number',
|
||||
builder: (context, state) => GhIssueScreen(
|
||||
state.params['owner']!,
|
||||
state.params['name']!,
|
||||
int.parse(state.params['number']!),
|
||||
),
|
||||
routes: [
|
||||
GoRoute(
|
||||
path: 'files',
|
||||
builder: (context, state) {
|
||||
return GhFilesScreen(
|
||||
state.params['owner']!,
|
||||
state.params['name']!,
|
||||
int.parse(state.params['number']!),
|
||||
);
|
||||
},
|
||||
),
|
||||
],
|
||||
path: 'files',
|
||||
builder: (context, state) {
|
||||
return GhFilesScreen(
|
||||
state.params['owner']!,
|
||||
state.params['name']!,
|
||||
int.parse(state.params['number']!),
|
||||
);
|
||||
},
|
||||
),
|
||||
],
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue