- 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
30 lines
907 B
Dart
30 lines
907 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_mobx/flutter_mobx.dart';
|
|
import 'package:frosty/stores/auth_store.dart';
|
|
import 'package:frosty/stores/settings_store.dart';
|
|
import 'package:frosty/widgets/profile_card.dart';
|
|
import 'package:provider/provider.dart';
|
|
|
|
class Settings extends StatelessWidget {
|
|
final SettingsStore settingsStore;
|
|
|
|
const Settings({Key? key, required this.settingsStore}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Observer(
|
|
builder: (_) {
|
|
return ListView(
|
|
children: [
|
|
ProfileCard(authStore: context.read<AuthStore>()),
|
|
SwitchListTile(
|
|
title: const Text('Enable Video'),
|
|
value: settingsStore.videoEnabled,
|
|
onChanged: (newValue) => settingsStore.videoEnabled = newValue,
|
|
),
|
|
],
|
|
);
|
|
},
|
|
);
|
|
}
|
|
}
|