diff --git a/lib/pages/communities_list.dart b/lib/pages/communities_list.dart index 8957eb1..7426cd3 100644 --- a/lib/pages/communities_list.dart +++ b/lib/pages/communities_list.dart @@ -1,11 +1,11 @@ import 'package:cached_network_image/cached_network_image.dart'; import 'package:flutter/material.dart'; -import 'package:lemmur/widgets/sortable_infinite_list.dart'; import 'package:lemmy_api_client/lemmy_api_client.dart'; import '../util/extensions/api.dart'; import '../util/goto.dart'; import '../widgets/markdown_text.dart'; +import '../widgets/sortable_infinite_list.dart'; class CommunitiesListPage extends StatelessWidget { final String title; diff --git a/lib/widgets/sortable_infinite_list.dart b/lib/widgets/sortable_infinite_list.dart index f729485..7ef5b6f 100644 --- a/lib/widgets/sortable_infinite_list.dart +++ b/lib/widgets/sortable_infinite_list.dart @@ -54,18 +54,16 @@ class InfinitePostList extends StatelessWidget { InfinitePostList({this.fetcher}); - Widget build(BuildContext context) { - return SortableInfiniteList( - onStyleChange: () {}, - builder: (post) => Column( - children: [ - Post(post), - SizedBox(height: 20), - ], - ), - fetcher: fetcher, - ); - } + Widget build(BuildContext context) => SortableInfiniteList( + onStyleChange: () {}, + builder: (post) => Column( + children: [ + Post(post), + SizedBox(height: 20), + ], + ), + fetcher: fetcher, + ); } class InfiniteCommentList extends StatelessWidget {