make listing type selection more universal
This commit is contained in:
parent
fc256d800d
commit
81fa4aac86
|
@ -61,24 +61,16 @@ class HomeTab extends HookWidget {
|
||||||
VisualDensity(vertical: VisualDensity.minimumDensity),
|
VisualDensity(vertical: VisualDensity.minimumDensity),
|
||||||
leading: SizedBox.shrink(),
|
leading: SizedBox.shrink(),
|
||||||
),
|
),
|
||||||
ListTile(
|
for (final listingType in [
|
||||||
title: const Text('Subscribed'),
|
PostListingType.subscribed,
|
||||||
leading: const SizedBox(width: 20, height: 20),
|
PostListingType.local,
|
||||||
onTap: () => pop(const _SelectedList(
|
PostListingType.all,
|
||||||
listingType: PostListingType.subscribed)),
|
])
|
||||||
),
|
ListTile(
|
||||||
ListTile(
|
title: Text(listingType.value),
|
||||||
title: const Text('Local'),
|
leading: const SizedBox(width: 20, height: 20),
|
||||||
leading: const SizedBox(width: 20, height: 20),
|
onTap: () => pop(_SelectedList(listingType: listingType)),
|
||||||
onTap: () => pop(
|
),
|
||||||
const _SelectedList(listingType: PostListingType.local)),
|
|
||||||
),
|
|
||||||
ListTile(
|
|
||||||
title: const Text('All'),
|
|
||||||
leading: const SizedBox(width: 20, height: 20),
|
|
||||||
onTap: () => pop(
|
|
||||||
const _SelectedList(listingType: PostListingType.all)),
|
|
||||||
),
|
|
||||||
for (final instance in accStore.instances) ...[
|
for (final instance in accStore.instances) ...[
|
||||||
const Padding(
|
const Padding(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 10),
|
padding: EdgeInsets.symmetric(horizontal: 10),
|
||||||
|
|
Loading…
Reference in New Issue