frosty/lib/stores/home_store.dart
tommyxchow e3f774d8e5 Redesign & refactor home screen
- Removed hamburger/drawer menu
- Moved search to bottom navigation bar
- Moved settings and profile to app bar
- Moved channel list from screen to widget folder
- Created search screen for viewing results
- Switched from Cupertino to Material routes due to rebuild issues
2021-11-10 21:29:15 -05:00

23 lines
401 B
Dart

import 'package:mobx/mobx.dart';
part 'home_store.g.dart';
class HomeStore = _HomeStoreBase with _$HomeStore;
abstract class _HomeStoreBase with Store {
@observable
bool search = false;
@observable
int selectedIndex = 0;
@action
void handleTap(int index) {
if (index == 3) {
search = !search;
}
if (index != selectedIndex) {
selectedIndex = index;
}
}
}