- 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
23 lines
401 B
Dart
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;
|
|
}
|
|
}
|
|
}
|