Use bottom bar to scroll to top on home (#90)

This commit is contained in:
Tommy Chow 2022-06-29 01:06:33 -04:00
parent 5c3b0c6775
commit bf2818ef5a
11 changed files with 231 additions and 192 deletions

View file

@ -114,8 +114,14 @@ class _HomeState extends State<Home> {
builder: (_) => IndexedStack(
index: _homeStore.selectedIndex,
children: [
if (_authStore.isLoggedIn) const StreamsList(listType: ListType.followed),
const TopSection(),
if (_authStore.isLoggedIn)
StreamsList(
listType: ListType.followed,
scrollController: _homeStore.followedScrollController,
),
TopSection(
homeStore: _homeStore,
),
const Search(),
],
),