BannerTheme class

Theme data for banners

Constructors

BannerTheme({required Color backgroundColor, required Color textColor, Color? buttonColor, Color? buttonTextColor, LinearGradient? gradient, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(8.0)), double elevation = 4.0, TextStyle? titleStyle, TextStyle? subtitleStyle, TextStyle? buttonStyle})
const
BannerTheme.dark()
Create a dark theme
factory
BannerTheme.gradient(LinearGradient gradient)
Create a gradient theme
factory
BannerTheme.light()
Create a light theme
factory

Properties

backgroundColor Color
final
borderRadius BorderRadius
final
buttonColor Color?
final
buttonStyle TextStyle?
final
buttonTextColor Color?
final
elevation double
final
gradient LinearGradient?
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtitleStyle TextStyle?
final
textColor Color
final
titleStyle TextStyle?
final

Methods

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