placeholderBehavior property
Manages the visibility of the placeholder widget.
Allowing it to either hide when a message is added or or stay visible, positioned above all messages.
Defaults to AssistPlaceholderBehavior.scrollWithMessage.
@override
Widget build(BuildContext context) {
return SfAIAssistView(
placeholderBehavior: AssistPlaceholderBehavior.hide,
placeholderBuilder: (BuildContext context) {
return Text('No messages yet');
},
);
}
Implementation
final AssistPlaceholderBehavior placeholderBehavior;