[READ ONLY MIRROR] Open Source TikTok alternative built on AT Protocol github.com/sprksocial/client
flutter atproto video dart
10
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix back button of profile feed (#64)

authored by

Davi Rodrigues and committed by
GitHub
f3e16ec0 b4743142

+7 -28
+7 -28
lib/src/features/profile/ui/pages/standalone_profile_feed_page.dart
··· 47 47 48 48 return Scaffold( 49 49 backgroundColor: AppColors.black, 50 - appBar: AppBar( 51 - backgroundColor: AppColors.black, 52 - leading: IconButton( 53 - icon: const Icon(Icons.arrow_back, color: AppColors.white), 54 - onPressed: () => context.router.back(), 55 - ), 56 - ), 50 + appBar: AppBar(backgroundColor: AppColors.black, leading: AutoLeadingButton()), 57 51 body: feedState.when( 58 52 data: (state) { 59 53 if (state.loadedPosts.isEmpty) { 60 54 return const Center( 61 - child: Text( 62 - 'No posts available', 63 - style: TextStyle(color: AppColors.white), 64 - ), 55 + child: Text('No posts available', style: TextStyle(color: AppColors.white)), 65 56 ); 66 57 } 67 58 ··· 90 81 }, 91 82 itemBuilder: (context, index) { 92 83 if (index >= state.loadedPosts.length) { 93 - return const Center( 94 - child: CircularProgressIndicator(color: AppColors.white), 95 - ); 84 + return const Center(child: CircularProgressIndicator(color: AppColors.white)); 96 85 } 97 86 98 87 final postUri = state.loadedPosts[index]; 99 - return ProfileFeedPostWidget( 100 - postUri: postUri, 101 - profileUri: profileAtUri, 102 - videosOnly: widget.videosOnly, 103 - ); 88 + return ProfileFeedPostWidget(postUri: postUri, profileUri: profileAtUri, videosOnly: widget.videosOnly); 104 89 }, 105 90 ); 106 91 }, 107 - loading: () => const Center( 108 - child: CircularProgressIndicator(color: AppColors.white), 109 - ), 92 + loading: () => const Center(child: CircularProgressIndicator(color: AppColors.white)), 110 93 error: (error, stack) => Center( 111 94 child: Column( 112 95 mainAxisAlignment: MainAxisAlignment.center, 113 96 children: [ 114 - const Icon( 115 - Icons.error_outline, 116 - color: AppColors.white, 117 - size: 48, 118 - ), 97 + const Icon(Icons.error_outline, color: AppColors.white, size: 48), 119 98 const SizedBox(height: 16), 120 99 Text( 121 100 'Error loading feed: $error', ··· 135 114 ), 136 115 ); 137 116 } 138 - } 117 + }