mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-14 01:37:07 -07:00
feat: Android TV support (#503)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
7ab8c015b9
commit
c299492d6d
168 changed files with 12019 additions and 3073 deletions
|
|
@ -9,6 +9,7 @@ import 'package:fladder/util/list_padding.dart';
|
|||
import 'package:fladder/util/localization_helper.dart';
|
||||
import 'package:fladder/util/string_extensions.dart';
|
||||
import 'package:fladder/widgets/shared/enum_selection.dart';
|
||||
import 'package:fladder/widgets/shared/item_actions.dart';
|
||||
|
||||
final _selectedWarningProvider = StateProvider<ErrorType?>((ref) => null);
|
||||
|
||||
|
|
@ -41,16 +42,14 @@ class CrashScreen extends ConsumerWidget {
|
|||
EnumBox(
|
||||
current: selectedType == null ? context.localized.all : selectedType.name.capitalize(),
|
||||
itemBuilder: (context) => [
|
||||
PopupMenuItem(
|
||||
value: null,
|
||||
child: Text(context.localized.all),
|
||||
onTap: () => ref.read(_selectedWarningProvider.notifier).update((state) => null),
|
||||
ItemActionButton(
|
||||
label: Text(context.localized.all),
|
||||
action: () => ref.read(_selectedWarningProvider.notifier).update((state) => null),
|
||||
),
|
||||
...ErrorType.values.map(
|
||||
(entry) => PopupMenuItem(
|
||||
value: entry,
|
||||
child: Text(entry.name.capitalize()),
|
||||
onTap: () => ref.read(_selectedWarningProvider.notifier).update((state) => entry),
|
||||
(entry) => ItemActionButton(
|
||||
label: Text(entry.name.capitalize()),
|
||||
action: () => ref.read(_selectedWarningProvider.notifier).update((state) => entry),
|
||||
),
|
||||
)
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue