MBInAppMessageTheme class

Theme for in-app message

Constructors

MBInAppMessageTheme({Color? backgroundColor, TextStyle? titleStyle, TextStyle? bodyStyle, Color? closeButtonColor, Color? closeButtonBackgroundColor, Color? button1BackgroundColor, TextStyle? button1TextStyle, double? button1BorderRadius, Color? button2BackgroundColor, Color? button2BorderColor, TextStyle? button2TextStyle, double? button2BorderRadius})
Initializes a new in-app message theme with the parameters passed.
const

Properties

backgroundColor Color?
The background color for the alert.
final
bodyStyle TextStyle?
The body text style.
final
button1BackgroundColor Color?
The background color for the first button.
final
button1BorderRadius double?
The border radius for the first button.
final
button1TextStyle TextStyle?
The text style for the first button.
final
button2BackgroundColor Color?
The background color for the second button.
final
button2BorderColor Color?
The border color for the second button.
final
button2BorderRadius double?
The border radius for the second button.
final
button2TextStyle TextStyle?
The text style for the second button.
final
closeButtonBackgroundColor Color?
The background color of the close button.
final
closeButtonColor Color?
The color of the close button icon.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
titleStyle TextStyle?
The title text style.
final

Methods

copyWith({Color? backgroundColor, TextStyle? titleStyle, TextStyle? bodyStyle, Color? closeButtonColor, Color? closeButtonBackgroundColor, Color? button1BackgroundColor, TextStyle? button1TextStyle, double? button1BorderRadius, Color? button2BackgroundColor, Color? button2BorderColor, TextStyle? button2TextStyle, double? button2BorderRadius}) MBInAppMessageTheme
Creates a copy of this theme but with the given fields replaced with the new values
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

defaultThemeForMessage(BuildContext context, MBInAppMessage message) MBInAppMessageTheme
Provides a default theme for the in-app message passed. The fonts are taken from the Theme of the context passed: