enfinnnnnnnnnn
continuous-integration/drone/push Build is passing Details

NEW_REFRESH_LDE
Lucas Delanier 2 years ago
parent 6396a8dba8
commit 10f2b967a8

@ -3,8 +3,7 @@ package="com.example.justmusic">
<application <application
android:label="justmusic" android:label="justmusic"
android:name="${applicationName}" android:name="${applicationName}"
android:icon="@mipmap/ic_launcher" android:icon="@mipmap/ic_launcher">
android:enableOnBackInvokedCallback="true">
<activity <activity
android:name=".MainActivity" android:name=".MainActivity"

@ -50,6 +50,7 @@ class _DetailPostScreenState extends State<DetailPostScreen> {
@override @override
void initState() { void initState() {
super.initState();
myFocusNode = FocusNode(); myFocusNode = FocusNode();
} }

@ -37,8 +37,7 @@ class _FeedScreenState extends State<FeedScreen> with SingleTickerProviderStateM
super.initState(); super.initState();
friendFeed = MyApp.postViewModel.postsFriends; friendFeed = MyApp.postViewModel.postsFriends;
discoveryFeed = MyApp.postViewModel.bestPosts; discoveryFeed = MyApp.postViewModel.bestPosts;
displayFeed =
Tuple2(MyApp.postViewModel.postsFriends.reversed.toList(), MyApp.postViewModel.bestPosts.reversed.toList());
animationController = AnimationController( animationController = AnimationController(
vsync: this, vsync: this,
duration: Duration(milliseconds: 400), duration: Duration(milliseconds: 400),
@ -116,6 +115,8 @@ class _FeedScreenState extends State<FeedScreen> with SingleTickerProviderStateM
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
displayFeed =
Tuple2(MyApp.postViewModel.postsFriends.reversed.toList(), MyApp.postViewModel.bestPosts.reversed.toList());
bool empty = bool empty =
(choiceFeed == true && displayFeed.item1.isEmpty) || (choiceFeed == false && displayFeed.item2.isEmpty); (choiceFeed == true && displayFeed.item1.isEmpty) || (choiceFeed == false && displayFeed.item2.isEmpty);
return Scaffold( return Scaffold(

Loading…
Cancel
Save