flutter_chat_bubble 1.0.0 copy "flutter_chat_bubble: ^1.0.0" to clipboard
flutter_chat_bubble: ^1.0.0 copied to clipboard

outdated

Flutter Widget for creating different types of chat Bubble

Flutter Chat Bubble #

Flutter widget for creating different types of chat bubble.

Usage #

To use this plugin, add flutter_chat_bubble as a dependency in your pubspec.yaml file.

ChatBubble widget use for create different bubbles. You can differentiate bubble my specifing different clippers.

Property Description
clipper Different Custom clipper like ChatBubbleClipper1,ChatBubbleClipper2 to ChatBubbleClipper9
child Child of widget bubble
margin Margin of widget
backGroundColor Background color of widget
elevation Elevation of widget
shadowColor Shadow color of widget
alignment Widget alignment like Alignment.topLeft, Alignment.topRight

Example 1 #

ChatBubble(
    clipper: ChatBubbleClipper1(type: BubbleType.sendBubble),
    alignment: Alignment.topRight,
    margin: EdgeInsets.only(top: 20),
    backGroundColor: Colors.blue,
    child: Text(
      "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
      style: TextStyle(color: Colors.white),
    ),
  )
  
  ChatBubble(
    clipper: ChatBubbleClipper1(type: BubbleType.receiverBubble),
    backGroundColor: Color(0xffE7E7ED),
    margin: EdgeInsets.only(top: 20),
    child: Container(
      constraints: BoxConstraints(
        maxWidth: MediaQuery.of(context).size.width * 0.7,
      ),
      child: Text(
        "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat",
        style: TextStyle(color: Colors.black),
      ),
    ),
  )
Property of ChatBubbleClipper1 Description
type Values BubbleType.sendBubble and BubbleType.receiverBubble
radius Radius of widget
nipHeight Height of nip
nipWidth Width of nip
nipRadius Radius of nip

Example 2 #

ChatBubble(
    clipper: ChatBubbleClipper2(type: BubbleType.sendBubble),
  )
  
ChatBubble(
    clipper: ChatBubbleClipper2(type: BubbleType.receiverBubble),
  )
Property of ChatBubbleClipper2 Description
type Values BubbleType.sendBubble and BubbleType.receiverBubble
radius Radius of widget
nipHeight Height of nip
nipWidth Width of nip
nipRadius Radius of nip

Example 3 #

ChatBubble(
    clipper: ChatBubbleClipper3(type: BubbleType.sendBubble),
  )
  
ChatBubble(
    clipper: ChatBubbleClipper3(type: BubbleType.receiverBubble),
  )
Property of ChatBubbleClipper3 Description
type Values BubbleType.sendBubble and BubbleType.receiverBubble
radius Radius of widget
nipSize Size of nip

Example 4 #

ChatBubble(
    clipper: ChatBubbleClipper4(type: BubbleType.sendBubble),
  )
  
ChatBubble(
    clipper: ChatBubbleClipper4(type: BubbleType.receiverBubble),
  )
Property of ChatBubbleClipper4 Description
type Values BubbleType.sendBubble and BubbleType.receiverBubble
radius Radius of widget
nipSize Size of nip
offset Nip distance from bottom

Example 5 #

ChatBubble(
    clipper: ChatBubbleClipper5(type: BubbleType.sendBubble),
  )
  
ChatBubble(
    clipper: ChatBubbleClipper5(type: BubbleType.receiverBubble),
  )
Property of ChatBubbleClipper5 Description
type Values BubbleType.sendBubble and BubbleType.receiverBubble
radius Radius of widget
nipSize Size of nip
sizeRatio Width ratio of nip

Example 6 #

ChatBubble(
    clipper: ChatBubbleClipper6(type: BubbleType.sendBubble),
  )
  
ChatBubble(
    clipper: ChatBubbleClipper6(type: BubbleType.receiverBubble),
  )
Property of ChatBubbleClipper6 Description
type Values BubbleType.sendBubble and BubbleType.receiverBubble
radius Radius of widget
nipSize Size of nip
sizeRatio Width ratio of nip

Example 7 #

ChatBubble(
    clipper: ChatBubbleClipper7(type: BubbleType.sendBubble),
  )
  
ChatBubble(
    clipper: ChatBubbleClipper7(type: BubbleType.receiverBubble),
  )
Property of ChatBubbleClipper7 Description
type Values BubbleType.sendBubble and BubbleType.receiverBubble
radius Radius of widget

Example 8 #

ChatBubble(
    clipper: ChatBubbleClipper8(type: BubbleType.sendBubble),
  )
  
ChatBubble(
    clipper: ChatBubbleClipper8(type: BubbleType.receiverBubble),
  )
Property of ChatBubbleClipper8 Description
type Values BubbleType.sendBubble and BubbleType.receiverBubble
radius Radius of widget

Example 9 #

ChatBubble(
    clipper: ChatBubbleClipper9(type: BubbleType.sendBubble),
  )
  
ChatBubble(
    clipper: ChatBubbleClipper9(type: BubbleType.receiverBubble),
  )
Property of ChatBubbleClipper8 Description
type Values BubbleType.sendBubble and BubbleType.receiverBubble
radius Radius of widget
secondRadius Second radius of widget
294
likes
0
pub points
98%
popularity

Publisher

unverified uploader

Flutter Widget for creating different types of chat Bubble

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_chat_bubble