mirror of
https://github.com/git-touch/git-touch
synced 2024-12-20 04:05:26 +01:00
fix(gitlab): issue router
This commit is contained in:
parent
39c360f281
commit
e2e0f6ba25
@ -10,16 +10,21 @@ import 'package:timeago/timeago.dart' as timeago;
|
|||||||
import 'package:tuple/tuple.dart';
|
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