MCSI-1 fix: dropdown menu is cleared

This commit is contained in:
SquidSpirit 2025-06-29 18:07:54 +08:00
parent f1716b0505
commit c03af1c33c
2 changed files with 2 additions and 9 deletions

View File

@ -13,10 +13,11 @@ class GameVersionDropdown extends StatelessWidget {
listener: (_, __) {},
builder:
(_, state) => DropdownMenu(
initialSelection: state.selectedGameVersion,
enabled: state.gameVersions.isNotEmpty,
requestFocusOnTap: false,
expandedInsets: EdgeInsets.zero,
label: const Text(Strings.fieldGameVersion),
label: const Text('${Strings.fieldGameVersion} *'),
onSelected: (value) {
if (value != null) {
context.read<VanilaBloc>().add(VanilaGameVersionSelectedEvent(value));

View File

@ -1,8 +0,0 @@
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility in the flutter_test package. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
void main() {}