selection_group 0.0.10
selection_group: ^0.0.10 copied to clipboard
A Flutter widget that manages selection and focus state across a group of items.
0.0.10 #
- feat: add
enabledparameter toSelectionGroupItem— when false, disables the button and appliesWidgetState.disabledautomatically, allowingdisabledandselectedto coexist independently. - docs: rewrite
maintainSelectionOnFocussection to better explain visual behavior on TV/Desktop. - docs: added a note about explicit typing (e.g.,
SelectionGroup<String>) to ensure correct value comparison and state updates.
0.0.9 #
- docs: add missing CHANGELOG entry for 0.0.8
0.0.8 #
- Add
maintainSelectionOnFocus— keepsWidgetState.selectedvisible while the group has focus - Add
focusInitialItem— requests focus on the initial item on the first frame
0.0.7 #
-
feat: add
SelectionGroupItem— a ready-to-use widget that integrates with SelectionGroup and handles visual states automatically. -
feat:
SelectionGroupItemMixin.selectionValueis now nullable, allowingSelectionGroupItemto be used outside of a group while maintaining focus and states. -
refactor: modularized project structure with a navigation summary using part and part of for better maintainability.
0.0.6 #
- feat: add
selectOnFocusflag — set to false to select only on press (e.g. radio buttons on TV)
0.0.5 #
- feat:
onFocusChangereplaced byonFocusedItemChanged— now returns the focused item value ornullwhen the group loses focus - feat: focused item is automatically marked as selected
- fix: focus listeners are now properly removed on unregister
0.0.4 #
- feat: add
onFocusChangecallback toSelectionGroup - feat: suppress
WidgetState.selectedon all items while group has focus
0.0.3 #
- fix: update LICENSE to MIT
- fix: update tests
0.0.2 #
- fix: update LICENSE
0.0.1 #
- initial release