Skip to content

Commit

Permalink
Tail blog grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed May 25, 2024
1 parent 276beac commit dd6c8ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Frontend/Widgets/tail_blog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ class _TailBlogState extends State<TailBlog> {
return AnimatedCrossFade(
alignment: Alignment.center,
firstChild: feedState == FeedState.loading ? const LinearProgressIndicator() : Container(),
secondChild: ListView.builder(
itemExtent: 300,
secondChild: GridView.builder(
controller: widget.controller,
gridDelegate: const SliverGridDelegateWithMaxCrossAxisExtent(maxCrossAxisExtent: 500),
shrinkWrap: true,
physics: const NeverScrollableScrollPhysics(),
itemCount: results.length,
Expand All @@ -61,7 +61,7 @@ class _TailBlogState extends State<TailBlog> {
return AnimatedOpacity(
duration: animationTransitionDuration,
opacity: snapshot.hasData ? 1 : 0,
child: snapshot.hasData ? snapshot.data! : Container(),
child: snapshot.hasData ? snapshot.data! : const CircularProgressIndicator(),
);
},
)
Expand Down

0 comments on commit dd6c8ca

Please sign in to comment.