You can edit 8 Components for free. Get premium for unlimited access.
A component to display messages within a chat.
The Message component is used to display your own or third-party messages within a chat.
This component inherits props from the Message.
You can edit the type with the message or ownMessage parameter.

Image 2.1 : Type message

Image 2.2 : Type ownMessage
You can edit the state with the response or single parameter.

Image 3.1 : State single

Image 3.2 : State response
You can edit the author with the true or false parameter.

Image 4.1 : Author false

Image 4.2 : Author true
The Message component is used to display your own or third-party messages within a chat.
This component inherits props from the Message.
-
-
-
You can edit the type with the .message or .ownMessage parameter.
You can edit the state with the .response or .single parameter.
Preview
Code
DlMessage(
type: DlMessageType.ownMessage,
state: DlMessageState.single,
message: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr.',
)Add this code example to your project to see how the component works.
DlMessage(
type: DlMessageType.ownMessage,
state: DlMessageState.response,
author: 'Author',
responseTitle: 'Joshua',
responseMessage: 'Looks great!',
message: 'Thanks for the feedback.',
)DlMessage renders chat bubbles with message and ownMessage variants, optional author, and an optional response block layout.
Variants
Preview
Code
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: const [
child: DlMessage(
type: DlMessageType.message,
author: 'Thomas',
message: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr.',
),
),
SizedBox(height: 16),
child: DlMessage(
type: DlMessageType.ownMessage,
message: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr.',
),
),
],
)Variants
Preview
Code
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: const [
child: DlMessage(
type: DlMessageType.message,
state: DlMessageState.response,
author: 'Thomas',
responseTitle: 'Andrew',
responseMessage: 'Lorem ipsum dolor sit amet.',
message: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr.',
),
),
SizedBox(height: 16),
child: DlMessage(
type: DlMessageType.ownMessage,
state: DlMessageState.response,
responseTitle: 'Andrew',
responseMessage: 'Lorem ipsum dolor sit amet.',
message: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr.',
),
),
],
)You have questions or need help?
You want to try?
Save time and money?