SinglePickerConfiguration constructor

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

Implementation

const SinglePickerConfiguration({
  super.iconBuilder,
  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,
});