lint fixes

* convert import to relative
* convert `() {}` to `=>`
This commit is contained in:
krawieck 2020-09-29 12:24:52 +02:00
parent fe90119826
commit 5a858142b5
2 changed files with 11 additions and 13 deletions

View File

@ -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;

View File

@ -54,8 +54,7 @@ class InfinitePostList extends StatelessWidget {
InfinitePostList({this.fetcher});
Widget build(BuildContext context) {
return SortableInfiniteList<PostView>(
Widget build(BuildContext context) => SortableInfiniteList<PostView>(
onStyleChange: () {},
builder: (post) => Column(
children: [
@ -65,7 +64,6 @@ class InfinitePostList extends StatelessWidget {
),
fetcher: fetcher,
);
}
}
class InfiniteCommentList extends StatelessWidget {