responseToolbarItemShape property
Shape of the footer item, which can vary based on the widget's state. This uses a WidgetStateProperty to allow state-specific changes.
Widget build(BuildContext context) {
return Scaffold(
body: SfAIAssistViewTheme(
data: SfAIAssistViewThemeData(
responseToolbarItemShape:
WidgetStateProperty.resolveWith<ShapeBorder>(
(Set<WidgetState> states) {
if (states.contains(WidgetState.hovered)) {
return RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12.0),
);
}
return RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8.0),
);
},
),
),
child: SfAIAssistView(),
),
);
}
Implementation
final WidgetStateProperty<ShapeBorder?>? responseToolbarItemShape;