fix(patch_selector): correct popup menu style

fix: #1372
This commit is contained in:
Pun Butrach 2023-10-15 17:46:44 +07:00 committed by GitHub
parent d97192e0ee
commit 72ea33b6de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,6 @@ import 'package:revanced_manager/app/app.locator.dart';
import 'package:revanced_manager/services/manager_api.dart'; import 'package:revanced_manager/services/manager_api.dart';
import 'package:revanced_manager/ui/views/patches_selector/patches_selector_viewmodel.dart'; import 'package:revanced_manager/ui/views/patches_selector/patches_selector_viewmodel.dart';
import 'package:revanced_manager/ui/widgets/patchesSelectorView/patch_item.dart'; import 'package:revanced_manager/ui/widgets/patchesSelectorView/patch_item.dart';
import 'package:revanced_manager/ui/widgets/shared/custom_popup_menu.dart';
import 'package:revanced_manager/ui/widgets/shared/search_bar.dart'; import 'package:revanced_manager/ui/widgets/shared/search_bar.dart';
import 'package:revanced_manager/utils/check_for_supported_patch.dart'; import 'package:revanced_manager/utils/check_for_supported_patch.dart';
import 'package:stacked/stacked.dart'; import 'package:stacked/stacked.dart';
@ -94,20 +93,18 @@ class _PatchesSelectorViewState extends State<PatchesSelectorView> {
), ),
), ),
), ),
CustomPopupMenu( PopupMenuButton(
onSelected: (value) => onSelected: (value) {
{model.onMenuSelection(value, context)}, model.onMenuSelection(value, context);
children: { },
0: I18nText( itemBuilder: (BuildContext context) => <PopupMenuEntry>[
'patchesSelectorView.loadPatchesSelection', PopupMenuItem(
child: const Text( value: 0,
'', child: I18nText(
style: TextStyle( 'patchesSelectorView.loadPatchesSelection',
fontWeight: FontWeight.bold,
),
), ),
), ),
}, ],
), ),
], ],
bottom: PreferredSize( bottom: PreferredSize(