suggestionItemTextStyle property
Text style for the suggestion items.
Widget build(BuildContext context) {
return Scaffold(
body: SfChatTheme(
data: SfChatThemeData(
suggestionItemTextStyle:
WidgetStateProperty.resolveWith<TextStyle>(
(Set<WidgetState> states) {
if (states.contains(WidgetState.hovered)) {
return TextStyle(fontSize: 14.0, color: Colors.blue);
}
return TextStyle(fontSize: 15.0, color: Colors.green);
},
),
),
child: SfChat(),
),
);
}
Implementation
final WidgetStateProperty<TextStyle?>? suggestionItemTextStyle;