@@ -43,9 +43,7 @@ class SelectOptionTypeOptionWidget extends StatelessWidget {
4343 builder: (context, state) {
4444 List <Widget > children = [
4545 const TypeOptionSeparator (),
46- OptionTitle (
47- popoverMutex: popoverMutex,
48- ),
46+ const OptionTitle (),
4947 if (state.isEditingOption)
5048 Padding (
5149 padding: const EdgeInsets .only (bottom: 10 ),
@@ -66,9 +64,7 @@ class SelectOptionTypeOptionWidget extends StatelessWidget {
6664}
6765
6866class OptionTitle extends StatelessWidget {
69- final PopoverMutex ? popoverMutex;
70-
71- const OptionTitle ({this .popoverMutex, Key ? key}) : super (key: key);
67+ const OptionTitle ({Key ? key}) : super (key: key);
7268
7369 @override
7470 Widget build (BuildContext context) {
@@ -84,9 +80,7 @@ class OptionTitle extends StatelessWidget {
8480 ];
8581 if (state.options.isNotEmpty && ! state.isEditingOption) {
8682 children.add (const Spacer ());
87- children.add (_OptionTitleButton (
88- popoverMutex: popoverMutex,
89- ));
83+ children.add (const _OptionTitleButton ());
9084 }
9185
9286 return SizedBox (
@@ -99,9 +93,7 @@ class OptionTitle extends StatelessWidget {
9993}
10094
10195class _OptionTitleButton extends StatelessWidget {
102- final PopoverMutex ? popoverMutex;
103-
104- const _OptionTitleButton ({this .popoverMutex, Key ? key}) : super (key: key);
96+ const _OptionTitleButton ({Key ? key}) : super (key: key);
10597
10698 @override
10799 Widget build (BuildContext context) {
@@ -117,7 +109,6 @@ class _OptionTitleButton extends StatelessWidget {
117109 ),
118110 hoverColor: theme.hover,
119111 onTap: () {
120- popoverMutex? .close ();
121112 context
122113 .read <SelectOptionTypeOptionBloc >()
123114 .add (const SelectOptionTypeOptionEvent .addingOption ());
@@ -316,9 +307,6 @@ class _CreateOptionTextFieldState extends State<_CreateOptionTextField> {
316307 .read <SelectOptionTypeOptionBloc >()
317308 .add (SelectOptionTypeOptionEvent .createOption (optionName));
318309 },
319- onTap: () {
320- widget.popoverMutex? .close ();
321- },
322310 );
323311 },
324312 );
0 commit comments