ThemedIconPicker class
Constructors
ThemedIconPicker ({Key ? key , String ? labelText , Widget ? label , bool disabled = false , void onChanged (IconData )?, IconData ? value , List <String > errors = const [] , bool hideDetails = false , EdgeInsets ? padding , bool dense = false , bool isRequired = false , FocusNode ? focusNode , Map <String , String > translations = const {'actions.cancel' : 'Cancel', 'actions.save' : 'Save', 'helpers.search' : 'Search an emoji or group'} , bool overridesLayrzTranslations = false , List <IconData > allowedIcons = const [] , Widget ? customChild , Color hoverColor = Colors.transparent , Color focusColor = Colors.transparent , Color splashColor = Colors.transparent , Color highlightColor = Colors.transparent , BorderRadius borderRadius = const BorderRadius.all(Radius.circular(10)) })
ThemedIconPicker is an icon picker input. It is a text field that opens an OverlayEntry
with a list of icons to select from.
const
Properties
allowedIcons
→ List <IconData >
allowedIcons is the list of allowed icons to select from.
If this property is not submitted, all icons will be allowed.
final
borderRadius
→ BorderRadius
borderRadius is the border radius of the input. Only will affect when customChild is submitted.
By default, it will use BorderRadius.circular(10)
.
final
customChild
→ Widget ?
customChild is the custom child of the icon picker.
If it is submitted, the icon picker will be ignored.
final
dense
→ bool
dense is the state of the icon picker being dense.
final
disabled
→ bool
disabled is the disabled state of the icon picker.
final
errors
→ List <String >
errors is the list of errors of the icon picker.
final
focusColor
→ Color
focusColor is the focus color of the input. Only will affect when customChild is submitted.
By default, it will use Colors.transparent
.
final
focusNode
→ FocusNode ?
focusNode is the focus node of the icon picker.
final
hashCode
→ int
The hash code for this object.
no setter inherited
hideDetails
→ bool
hideDetails is the state of hiding the details of the icon picker.
final
highlightColor
→ Color
highlightColor is the highlight color of the input. Only will affect when customChild is submitted.
By default, it will use Colors.transparent
.
final
hoverColor
→ Color
hoverColor is the hover color of the input. Only will affect when customChild is submitted.
By default, it will use Colors.transparent
.
final
isRequired
→ bool
isRequired is the state of the icon picker being required.
final
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
label
→ Widget ?
label is the label widget of the icon picker. Avoid submit label and labelText at the same time.
final
labelText
→ String ?
labelText is the label text of the icon picker. Avoid submit label and labelText at the same time.
final
onChanged
→ (void Function(IconData ) ?)
onChanged is the callback function when the icon picker is changed.
final
overridesLayrzTranslations
→ bool
overridesLayrzTranslations is the flag to override the default translations of Layrz.
final
padding
→ EdgeInsets ?
padding is the padding of the icon picker.
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
splashColor
→ Color
splashColor is the splash color of the input. Only will affect when customChild is submitted.
By default, it will use Colors.transparent
.
final
translations
→ Map <String , String >
translations is the translations of the input. By default we use LayrzAppLocalizations
for translations,
but you can submit your own translations using this property. Consider when LayrzAppLocalizations
is present,
is the default value of this property.
Required translations:
final
value
→ IconData ?
value is the value of the icon picker.
final