Closed Ahmadre closed 1 month ago
This PR introduces the feature of pre-selecting an icon and on default scroll to the selected icon after initialization.
For this you can use now: selectedIcon: IconPickerIcon(...).
selectedIcon: IconPickerIcon(...)
This behaviour can be disabled with the parameter: shouldScrollToSelectedIcon = false.
shouldScrollToSelectedIcon = false
The background can be controlled by: selectedIconBackgroundColor = Color...
selectedIconBackgroundColor = Color...
This PR also has to introduce a BREAKING CHANGE where the return type is NOT IconData anymore, but our own IconPickerIcon Class:
IconData
IconPickerIcon
IconPickerIcon( name: 'camera', data: Icons.camera, pack: IconPack.material, );
Related issues:
73
Overview
This PR introduces the feature of pre-selecting an icon and on default scroll to the selected icon after initialization.
For this you can use now:
selectedIcon: IconPickerIcon(...)
.This behaviour can be disabled with the parameter:
shouldScrollToSelectedIcon = false
.The background can be controlled by:
selectedIconBackgroundColor = Color...
This PR also has to introduce a BREAKING CHANGE where the return type is NOT
IconData
anymore, but our ownIconPickerIcon
Class: