Skip to content

Commit

Permalink
Fix link share
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAlphamerc committed Jul 8, 2023
1 parent 15542db commit 38788d5
Show file tree
Hide file tree
Showing 4 changed files with 173 additions and 132 deletions.
5 changes: 4 additions & 1 deletion lib/helper/utility.dart
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ class Utility {
}
final uri = Uri.parse(url);
if (await canLaunchUrl(uri)) {
await launchURL(url);
await launchUrl(
Uri.parse(url),
mode: LaunchMode.externalApplication,
);
} else {
cprint('Could not launch $url');
}
Expand Down
17 changes: 8 additions & 9 deletions lib/state/feedState.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import 'package:flutter_twitter_clone/ui/page/common/locator.dart';
// show WebInfo;
import 'package:path/path.dart' as path;
import 'package:translator/translator.dart';
// import 'package:flutter_chat_types/flutter_chat_types.dart' show PreviewData;
// import 'authState.dart';

class FeedState extends AppState {
bool isBusy = false;
Expand Down Expand Up @@ -61,13 +59,14 @@ class FeedState extends AppState {
}

/// Only include Tweets of logged-in user's and his following user's
if (x.user!.userId == userModel.userId ||
(userModel.followingList != null &&
userModel.followingList!.contains(x.user!.userId))) {
return true;
} else {
return false;
}
// if (x.user!.userId == userModel.userId ||
// (userModel.followingList != null &&
// userModel.followingList!.contains(x.user!.userId))) {
// return true;
// } else {
// return false;
// }
return true;
}).toList();
if (list.isEmpty) {
list = null;
Expand Down
Loading

0 comments on commit 38788d5

Please sign in to comment.