SinglePickerConfiguration constructor

const SinglePickerConfiguration({
  1. IconPickerIcon? preSelected,
  2. bool shouldScrollToSelectedIcon = true,
  3. Color? selectedIconBackgroundColor,
  4. bool showSearchBar = true,
  5. bool adaptiveDialog = false,
  6. bool showTooltips = false,
  7. bool barrierDismissible = true,
  8. double iconSize = 40,
  9. Color? iconColor,
  10. double mainAxisSpacing = 5.0,
  11. double crossAxisSpacing = 5.0,
  12. ShapeBorder? iconPickerShape,
  13. Color? backgroundColor,
  14. BoxConstraints? constraints,
  15. Widget title = const Text('Pick an icon'),
  16. Widget closeChild = const Text('Close', textScaler: TextScaler.linear(1.25)),
  17. Icon searchIcon = const Icon(Icons.search),
  18. String searchHintText = 'Search',
  19. Icon searchClearIcon = const Icon(Icons.close),
  20. SearchComparator? searchComparator,
  21. String noResultsText = 'No results for:',
  22. List<IconPack> iconPackModes = const <IconPack>[IconPack.material],
  23. 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,
});