suggestionItemTextStyle property

WidgetStateProperty<TextStyle?>? suggestionItemTextStyle
final

Text style for the suggestion items.

Widget build(BuildContext context) {
  return Scaffold(
    body: SfAIAssistViewTheme(
      data: SfAIAssistViewThemeData(
        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: SfAIAssistView(),
    ),
  );
}

Implementation

final WidgetStateProperty<TextStyle?>? suggestionItemTextStyle;