@@ -10,10 +10,8 @@ import 'package:get_it/get_it.dart';
1010class PullRequestScreen extends StatelessWidget {
1111 final UserPullRequests pullRequest;
1212 final ScrollController controller;
13- const PullRequestScreen ({Key key, this .pullRequest, this .controller})
14- : super (key: key);
15- Widget _pullRequestTile (context, Node model, String username,
16- {bool isCommented = false }) {
13+ const PullRequestScreen ({Key key, this .pullRequest, this .controller}) : super (key: key);
14+ Widget _pullRequestTile (context, Node model, String username, {bool isCommented = false }) {
1715 final double widthOffset = 58.0 ;
1816 return GCard (
1917 color: Theme .of (context).colorScheme.surface,
@@ -62,8 +60,7 @@ class PullRequestScreen extends StatelessWidget {
6260 width: MediaQuery .of (context).size.width - widthOffset,
6361 alignment: Alignment .bottomRight,
6462 child: Text (
65- Utility .getPassedTime (model.createdAt.toString ()) +
66- " ago" ,
63+ Utility .getPassedTime (model.createdAt.toString ()) + " ago" ,
6764 style: Theme .of (context).textTheme.subtitle2,
6865 ),
6966 )
@@ -73,9 +70,7 @@ class PullRequestScreen extends StatelessWidget {
7370 ],
7471 ).vP16)
7572 .ripple (() {
76- Utility .launchTo (
77- model.url,
78- );
73+ Utility .launchURL (context, model.url);
7974 });
8075 }
8176
@@ -129,10 +124,8 @@ class PullRequestScreen extends StatelessWidget {
129124 return Column (
130125 children: < Widget > [
131126 // Text(model.type.toString()),
132- _pullRequestTile (context, model, snapshot.data ?? "" ,
133- isCommented: true ),
134- if (pullRequest.nodes.last != model)
135- Divider (height: 1 , indent: 50 ),
127+ _pullRequestTile (context, model, snapshot.data ?? "" , isCommented: true ),
128+ if (pullRequest.nodes.last != model) Divider (height: 1 , indent: 50 ),
136129 ],
137130 );
138131 },
0 commit comments