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
Describe the bug
When using multiple SelectWeekdays Widgets in the same app results in incorrect selections. If you select a day in one widget (say Monday in Widget 1) and go to another widget, say Widget 2 and enable day Tuesday, then the display in widget 2 shows
both Monday and Tuesday as selected. However, onPressed() returns the correct results.
To Reproduce
Steps to reproduce the behavior:
Execute the example code given in this repository.
Click on the first circle (Zo) in the first widget
Click on the second circle (Ma) in the second widget
You can see both Zo and Ma selected in the second widget
Expected behavior
Only 'Ma' selected in the second widget
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]
Smartphone (please complete the following information):
Device: Android emulator emulating Pixel 7
OS: Android
Version 2.2.0
Additional context
The text was updated successfully, but these errors were encountered:
Right now I don't have time to look at this. May be a week from now.
The issue is that widget is using the supplied instance of days itself to modify the selection state.
Fix can be in the widget OR in the example code to deepcopy the days instance.
Describe the bug
When using multiple SelectWeekdays Widgets in the same app results in incorrect selections. If you select a day in one widget (say Monday in Widget 1) and go to another widget, say Widget 2 and enable day Tuesday, then the display in widget 2 shows
both Monday and Tuesday as selected. However, onPressed() returns the correct results.
To Reproduce
Steps to reproduce the behavior:
Execute the example code given in this repository.
Expected behavior
Only 'Ma' selected in the second widget
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: