SinglePickerConfiguration constructor
const
SinglePickerConfiguration({
- IconPickerIcon? preSelected,
- bool shouldScrollToSelectedIcon = true,
- Color? selectedIconBackgroundColor,
- bool showSearchBar = true,
- bool adaptiveDialog = false,
- bool showTooltips = false,
- bool barrierDismissible = true,
- double iconSize = 40,
- Color? iconColor,
- double mainAxisSpacing = 5.0,
- double crossAxisSpacing = 5.0,
- ShapeBorder? iconPickerShape,
- Color? backgroundColor,
- BoxConstraints? constraints,
- Widget title = const Text('Pick an icon'),
- Widget closeChild = const Text('Close', textScaler: TextScaler.linear(1.25)),
- Icon searchIcon = const Icon(Icons.search),
- String searchHintText = 'Search',
- Icon searchClearIcon = const Icon(Icons.close),
- SearchComparator? searchComparator,
- String noResultsText = 'No results for:',
- List<
IconPack> iconPackModes = const <IconPack>[IconPack.material], - Map<
String, IconPickerIcon> ? customIconPack,
Implementation
const SinglePickerConfiguration({
super.preSelected,
super.shouldScrollToSelectedIcon = true,
super.selectedIconBackgroundColor,
super.showSearchBar = true,
super.adaptiveDialog = false,
super.showTooltips = false,
super.barrierDismissible = true,
super.iconSize = 40,
super.iconColor,
super.mainAxisSpacing = 5.0,
super.crossAxisSpacing = 5.0,
super.iconPickerShape,
super.backgroundColor,
super.constraints,
super.title = const Text('Pick an icon'),
super.closeChild = const Text(
'Close',
textScaler: TextScaler.linear(1.25),
),
super.searchIcon = const Icon(Icons.search),
super.searchHintText = 'Search',
super.searchClearIcon = const Icon(Icons.close),
super.searchComparator,
super.noResultsText = 'No results for:',
super.iconPackModes = const <IconPack>[IconPack.material],
super.customIconPack,
});