File tree Expand file tree Collapse file tree 4 files changed +173
-132
lines changed Expand file tree Collapse file tree 4 files changed +173
-132
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,10 @@ class Utility {
148
148
}
149
149
final uri = Uri .parse (url);
150
150
if (await canLaunchUrl (uri)) {
151
- await launchURL (url);
151
+ await launchUrl (
152
+ Uri .parse (url),
153
+ mode: LaunchMode .externalApplication,
154
+ );
152
155
} else {
153
156
cprint ('Could not launch $url ' );
154
157
}
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ import 'package:flutter_twitter_clone/ui/page/common/locator.dart';
14
14
// show WebInfo;
15
15
import 'package:path/path.dart' as path;
16
16
import 'package:translator/translator.dart' ;
17
- // import 'package:flutter_chat_types/flutter_chat_types.dart' show PreviewData;
18
- // import 'authState.dart';
19
17
20
18
class FeedState extends AppState {
21
19
bool isBusy = false ;
@@ -61,13 +59,14 @@ class FeedState extends AppState {
61
59
}
62
60
63
61
/// Only include Tweets of logged-in user's and his following user's
64
- if (x.user! .userId == userModel.userId ||
65
- (userModel.followingList != null &&
66
- userModel.followingList! .contains (x.user! .userId))) {
67
- return true ;
68
- } else {
69
- return false ;
70
- }
62
+ // if (x.user!.userId == userModel.userId ||
63
+ // (userModel.followingList != null &&
64
+ // userModel.followingList!.contains(x.user!.userId))) {
65
+ // return true;
66
+ // } else {
67
+ // return false;
68
+ // }
69
+ return true ;
71
70
}).toList ();
72
71
if (list.isEmpty) {
73
72
list = null ;
You can’t perform that action at this time.
0 commit comments