Skip to content

Commit 38788d5

Browse files
committed
Fix link share
1 parent 15542db commit 38788d5

File tree

4 files changed

+173
-132
lines changed

4 files changed

+173
-132
lines changed

lib/helper/utility.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,10 @@ class Utility {
148148
}
149149
final uri = Uri.parse(url);
150150
if (await canLaunchUrl(uri)) {
151-
await launchURL(url);
151+
await launchUrl(
152+
Uri.parse(url),
153+
mode: LaunchMode.externalApplication,
154+
);
152155
} else {
153156
cprint('Could not launch $url');
154157
}

lib/state/feedState.dart

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ import 'package:flutter_twitter_clone/ui/page/common/locator.dart';
1414
// show WebInfo;
1515
import 'package:path/path.dart' as path;
1616
import 'package:translator/translator.dart';
17-
// import 'package:flutter_chat_types/flutter_chat_types.dart' show PreviewData;
18-
// import 'authState.dart';
1917

2018
class FeedState extends AppState {
2119
bool isBusy = false;
@@ -61,13 +59,14 @@ class FeedState extends AppState {
6159
}
6260

6361
/// 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;
7170
}).toList();
7271
if (list.isEmpty) {
7372
list = null;

0 commit comments

Comments
 (0)