Skip to content

Commit

Permalink
Fix bug with no internet icon on tail blog
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Sep 3, 2024
1 parent 0467135 commit e3df0d5
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions lib/Frontend/Widgets/tail_blog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import '../../constants.dart';
import '../utils.dart';

part 'tail_blog.freezed.dart';

part 'tail_blog.g.dart';

final _wpLogger = Logger('Main');
Expand All @@ -43,15 +42,17 @@ class _TailBlogState extends State<TailBlog> {
alignment: Alignment.topCenter,
firstChild: feedState == FeedState.loading
? const LinearProgressIndicator()
: const Center(
child: Opacity(
opacity: 0.5,
child: Icon(
Icons.signal_cellular_connected_no_internet_0_bar,
size: 150,
),
),
),
: [FeedState.noInternet, FeedState.error].contains(feedState)
? const Center(
child: Opacity(
opacity: 0.5,
child: Icon(
Icons.signal_cellular_connected_no_internet_0_bar,
size: 150,
),
),
)
: Container(),
secondChild: GridView.builder(
controller: widget.controller,
gridDelegate: const SliverGridDelegateWithMaxCrossAxisExtent(maxCrossAxisExtent: 500, mainAxisExtent: 300),
Expand Down

0 comments on commit e3df0d5

Please sign in to comment.