File tree 2 files changed +26
-8
lines changed
lib/presentation/discover
2 files changed +26
-8
lines changed Original file line number Diff line number Diff line change @@ -271,11 +271,7 @@ class _DiscoverViewDesktopState extends State<DiscoverViewDesktop> {
271
271
posts.insertAll (posts.length, state.posts);
272
272
}
273
273
return posts.isEmpty
274
- ? const Center (
275
- child: CircularProgressIndicator (
276
- color: AppColor .appPrimary,
277
- ),
278
- )
274
+ ? NoPostsYet ()
279
275
: SingleChildScrollView (
280
276
child: Padding (
281
277
padding: const EdgeInsets .all (18.0 ),
@@ -321,4 +317,16 @@ class _DiscoverViewDesktopState extends State<DiscoverViewDesktop> {
321
317
),
322
318
);
323
319
}
320
+
321
+ Widget NoPostsYet () {
322
+ return Center (
323
+ child: Text (
324
+ "You Have No Posts Yet" ,
325
+ style: AppTextStyles .s18 (
326
+ color: AppColor .appSecondary,
327
+ fontType: FontType .MEDIUM ,
328
+ ),
329
+ ),
330
+ );
331
+ }
324
332
}
Original file line number Diff line number Diff line change @@ -239,9 +239,7 @@ class _DiscoverViewMobileState extends State<DiscoverViewMobile> {
239
239
posts.insertAll (posts.length, state.posts);
240
240
}
241
241
return posts.isEmpty
242
- ? const Center (
243
- child: CircularProgressIndicator (),
244
- )
242
+ ? NoPostsYet ()
245
243
: SingleChildScrollView (
246
244
child: Column (
247
245
children: [
@@ -308,4 +306,16 @@ class _DiscoverViewMobileState extends State<DiscoverViewMobile> {
308
306
),
309
307
);
310
308
}
309
+
310
+ Widget NoPostsYet () {
311
+ return Center (
312
+ child: Text (
313
+ "You have no posts yet" ,
314
+ style: AppTextStyles .s14 (
315
+ color: AppColor .appLightGrey,
316
+ fontType: FontType .REGULAR ,
317
+ ),
318
+ ),
319
+ );
320
+ }
311
321
}
You can’t perform that action at this time.
0 commit comments