mirror of
https://github.com/git-touch/git-touch
synced 2024-12-20 12:13:31 +01:00
fix(gitlab): issue router
This commit is contained in:
parent
39c360f281
commit
e2e0f6ba25
@ -11,15 +11,20 @@ import 'package:tuple/tuple.dart';
|
|||||||
|
|
||||||
final gitlabIssueRouter = RouterScreen(
|
final gitlabIssueRouter = RouterScreen(
|
||||||
'/gitlab/projects/:id/issues/:iid',
|
'/gitlab/projects/:id/issues/:iid',
|
||||||
(context, params) => GitlabIssueScreen(
|
(context, params) {
|
||||||
int.parse(['id'].first), int.parse(params['iid'].first)));
|
return GitlabIssueScreen(
|
||||||
|
int.parse(params['id'].first),
|
||||||
|
int.parse(params['iid'].first),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
class GitlabIssueScreen extends StatelessWidget {
|
class GitlabIssueScreen extends StatelessWidget {
|
||||||
final int projectId;
|
final int projectId;
|
||||||
final int iid;
|
final int iid;
|
||||||
final bool isMr;
|
final bool isMr;
|
||||||
|
|
||||||
GitlabIssueScreen(this.projectId, this.iid, {this.isMr});
|
GitlabIssueScreen(this.projectId, this.iid, {this.isMr = false});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
Loading…
Reference in New Issue
Block a user