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
-
The background color for the first button.
final
-
The border radius for the first button.
final
-
The text style for the first button.
final
-
The background color for the second button.
final
-
The border color for the second button.
final
-
The border radius for the second button.
final
-
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: