ChatSuggestionSettings constructor
const
ChatSuggestionSettings({
- Color? backgroundColor,
- WidgetStateProperty<
Color?> ? itemBackgroundColor, - ShapeBorder? shape,
- WidgetStateProperty<
ShapeBorder?> ? itemShape, - WidgetStateProperty<
TextStyle?> ? textStyle, - EdgeInsetsGeometry padding = const EdgeInsetsDirectional.symmetric(vertical: 5.0),
- EdgeInsetsGeometry itemPadding = const EdgeInsets.symmetric(horizontal: 12.0, vertical: 8.0),
- Axis orientation = Axis.horizontal,
- ChatSuggestionOverflow itemOverflow = ChatSuggestionOverflow.wrap,
- ChatSuggestionSelectionType selectionType = ChatSuggestionSelectionType.single,
- double runSpacing = 12.0,
- double spacing = 16.0,
Creates a ChatSuggestionSettings with the given customization options.
Implementation
const ChatSuggestionSettings({
this.backgroundColor,
this.itemBackgroundColor,
this.shape,
this.itemShape,
this.textStyle,
this.padding = const EdgeInsetsDirectional.symmetric(vertical: 5.0),
this.itemPadding =
const EdgeInsets.symmetric(horizontal: 12.0, vertical: 8.0),
this.orientation = Axis.horizontal,
ChatSuggestionOverflow itemOverflow = ChatSuggestionOverflow.wrap,
ChatSuggestionSelectionType selectionType =
ChatSuggestionSelectionType.single,
this.runSpacing = 12.0,
this.spacing = 16.0,
}) : itemOverflow = itemOverflow == ChatSuggestionOverflow.scroll
? SuggestionOverflow.scroll
: SuggestionOverflow.wrap,
selectionType = selectionType == ChatSuggestionSelectionType.multiple
? SuggestionSelectionType.multiple
: SuggestionSelectionType.single;