File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import '../../constants.dart';
16
16
import '../utils.dart' ;
17
17
18
18
part 'tail_blog.freezed.dart' ;
19
-
20
19
part 'tail_blog.g.dart' ;
21
20
22
21
final _wpLogger = Logger ('Main' );
@@ -43,15 +42,17 @@ class _TailBlogState extends State<TailBlog> {
43
42
alignment: Alignment .topCenter,
44
43
firstChild: feedState == FeedState .loading
45
44
? const LinearProgressIndicator ()
46
- : const Center (
47
- child: Opacity (
48
- opacity: 0.5 ,
49
- child: Icon (
50
- Icons .signal_cellular_connected_no_internet_0_bar,
51
- size: 150 ,
52
- ),
53
- ),
54
- ),
45
+ : [FeedState .noInternet, FeedState .error].contains (feedState)
46
+ ? const Center (
47
+ child: Opacity (
48
+ opacity: 0.5 ,
49
+ child: Icon (
50
+ Icons .signal_cellular_connected_no_internet_0_bar,
51
+ size: 150 ,
52
+ ),
53
+ ),
54
+ )
55
+ : Container (),
55
56
secondChild: GridView .builder (
56
57
controller: widget.controller,
57
58
gridDelegate: const SliverGridDelegateWithMaxCrossAxisExtent (maxCrossAxisExtent: 500 , mainAxisExtent: 300 ),
You can’t perform that action at this time.
0 commit comments