You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is what i tried on flutter application.
i used this code with version 2.1.0 then no issue, but 2.1.4 is getting below exception.
please resolve it
and getting this error but in UI it displays correctly. but individual de-select is not working. what is the issue here ?
======== Exception caught by scheduler library =====================================================
The following _Exception was thrown during a scheduler callback:
Exception: Cannot select options that are not in the options list
When the exception was thrown, this was the stack:
#0 MultiSelectController.setSelectedOptions (package:multi_dropdown/multiselect_dropdown.dart:1176:7)
#1 _MultiSelectDropDownState._addOptions.<anonymous closure> (package:multi_dropdown/multiselect_dropdown.dart:422:21)
#2 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1386:15)
#3 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1322:11)
#4 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1169:5)
#5 _invoke (dart:ui/hooks.dart:312:13)
#6 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:399:5)
#7 _drawFrame (dart:ui/hooks.dart:283:31)
====================================================================================================
The text was updated successfully, but these errors were encountered:
nadeesh19
changed the title
Set initial selected values for but getting exception "Exception: Cannot select options that are not in the options list" in version 2.1.4
Set initial selected values but getting exception "Exception: Cannot select options that are not in the options list" in version 2.1.4
May 15, 2024
To set initial values you should use their controller. Set the options & selected options from controller. You can use :
_controller.setOptions(...) // To set options, you should do this. The selected items will match an items from this options
_controller.setSelectedOptions(...) // Then, set initial selected items from this controller function
I tried but same error ### The following _Exception was thrown during a scheduler callback:
Exception: Cannot select options that are not in the options list
This is what i tried on flutter application.
i used this code with version 2.1.0 then no issue, but 2.1.4 is getting below exception.
please resolve it
and getting this error but in UI it displays correctly. but individual de-select is not working. what is the issue here ?
The text was updated successfully, but these errors were encountered: