convert some returns to =>
This commit is contained in:
parent
88d8e1bcde
commit
4058ebc200
|
@ -259,15 +259,14 @@ class InfiniteHomeList extends HookWidget {
|
|||
}
|
||||
|
||||
Future<List<PostView>> Function(int, int) _fetcherFromInstance(
|
||||
String instanceUrl, PostListingType listingType, SortType sort) {
|
||||
return (page, batchSize) => LemmyApi(instanceUrl).v1.getPosts(
|
||||
type: listingType,
|
||||
sort: sort,
|
||||
page: page,
|
||||
limit: batchSize,
|
||||
auth: accStore.defaultTokenFor(instanceUrl)?.raw,
|
||||
);
|
||||
}
|
||||
String instanceUrl, PostListingType listingType, SortType sort) =>
|
||||
(page, batchSize) => LemmyApi(instanceUrl).v1.getPosts(
|
||||
type: listingType,
|
||||
sort: sort,
|
||||
page: page,
|
||||
limit: batchSize,
|
||||
auth: accStore.defaultTokenFor(instanceUrl)?.raw,
|
||||
);
|
||||
|
||||
return InfiniteScroll<PostView>(
|
||||
prepend: Column(
|
||||
|
|
|
@ -3,20 +3,18 @@ import 'package:flutter_hooks/flutter_hooks.dart';
|
|||
|
||||
class InboxPage extends HookWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(),
|
||||
body: Center(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
'🚧 WORK IN PROGRESS 🚧',
|
||||
style: Theme.of(context).textTheme.headline5,
|
||||
)
|
||||
],
|
||||
Widget build(BuildContext context) => Scaffold(
|
||||
appBar: AppBar(),
|
||||
body: Center(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
'🚧 WORK IN PROGRESS 🚧',
|
||||
style: Theme.of(context).textTheme.headline5,
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue