MCSI-1 fix: dropdown menu is cleared
This commit is contained in:
parent
f1716b0505
commit
c03af1c33c
@ -13,10 +13,11 @@ class GameVersionDropdown extends StatelessWidget {
|
|||||||
listener: (_, __) {},
|
listener: (_, __) {},
|
||||||
builder:
|
builder:
|
||||||
(_, state) => DropdownMenu(
|
(_, state) => DropdownMenu(
|
||||||
|
initialSelection: state.selectedGameVersion,
|
||||||
enabled: state.gameVersions.isNotEmpty,
|
enabled: state.gameVersions.isNotEmpty,
|
||||||
requestFocusOnTap: false,
|
requestFocusOnTap: false,
|
||||||
expandedInsets: EdgeInsets.zero,
|
expandedInsets: EdgeInsets.zero,
|
||||||
label: const Text(Strings.fieldGameVersion),
|
label: const Text('${Strings.fieldGameVersion} *'),
|
||||||
onSelected: (value) {
|
onSelected: (value) {
|
||||||
if (value != null) {
|
if (value != null) {
|
||||||
context.read<VanilaBloc>().add(VanilaGameVersionSelectedEvent(value));
|
context.read<VanilaBloc>().add(VanilaGameVersionSelectedEvent(value));
|
||||||
|
@ -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() {}
|
|
Loading…
x
Reference in New Issue
Block a user