MessageBar class
Normal Message bar with more actions
following attributes can be modified
BOOLEANS
replying is the additional reply widget top of the message bar
STRINGS
replyingTo is the string to tag the replying message
messageBarHitText
is the string to show as message bar hint
WIDGETS
actions are the additional leading action buttons like camera and file select
COLORS
replyWidgetColor is the reply widget color replyIconColor is the reply icon color on the left side of reply widget replyCloseColor is the close icon color on the right side of the reply widget messageBarColor is the color of the message bar sendButtonColor is the color of the send button messageBarHintStyle is the style of the message bar hint
METHODS
onTextChanged is the function which triggers after text every text change
onSend is the send button action
onTapCloseReply is the close button action of the close button on the
reply widget usually change replying attribute to false
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- MessageBar
Constructors
-
MessageBar.new({bool replying = false, String replyingTo = "", List<
Widget> actions = const [], Color replyWidgetColor = const Color(0xffF4F4F5), Color replyIconColor = Colors.blue, Color replyCloseColor = Colors.black12, Color messageBarColor = const Color(0xffF4F4F5), Color sendButtonColor = Colors.blue, String messageBarHintText = "Type your message here", TextStyle messageBarHintStyle = const TextStyle(fontSize: 16), TextStyle textFieldTextStyle = const TextStyle(color: Colors.black), void onTextChanged(String)?, void onSend(String)?, void onTapCloseReply()?}) - MessageBar constructor
Properties
-
actions
→ List<
Widget> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- messageBarColor → Color
-
final
- messageBarHintStyle → TextStyle
-
final
- messageBarHintText → String
-
final
- onSend → void Function(String)?
-
final
- onTapCloseReply → void Function()?
-
final
- onTextChanged → void Function(String)?
-
final
- replyCloseColor → Color
-
final
- replyIconColor → Color
-
final
- replying → bool
-
final
- replyingTo → String
-
final
- replyWidgetColor → Color
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendButtonColor → Color
-
final
- textFieldTextStyle → TextStyle
-
final
Methods
-
build(
BuildContext context) → Widget -
MessageBar builder method
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited