ControlButtonThemeData class
A style that overrides the default appearance of ControlButton
and
ControlButton
widgets when used with ControlButtonTheme or with the overall
ControlButtonBarTheme's ControlButtonBarThemeData.controlButtonTheme.
See also:
- ControlButtonTheme, the theme which is configured with this class.
- ControlButtonBarThemeData.controlButtonTheme, which can be used to override
the default style for
ControlButton
- Mixed in types
Constructors
-
ControlButtonThemeData({TextStyle? textStyle = const TextStyle(fontSize: 16, color: Color(0xFF649BEC)), TextStyle? primaryButtonTextStyle = const TextStyle(fontSize: 16, color: Colors.white), Color? primaryButtonBackgroundColor, Color? backgroundColor = Colors.transparent, double borderRadius = 25, List<
BoxShadow> ? boxShadow, double? elevation, EdgeInsetsGeometry? padding = const EdgeInsets.symmetric(horizontal: 16)}) -
Builds a ControlButtonThemeData.
const
- ControlButtonThemeData.dark(BuildContext context)
-
factory
- ControlButtonThemeData.light(BuildContext context)
-
factory
Properties
- backgroundColor → Color?
-
Background color of the control button.
final
- borderRadius → double
-
Control button border radius
final
-
boxShadow
→ List<
BoxShadow> ? -
The box shadow of control button.
final
- elevation → double?
-
Control button elevation
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- padding → EdgeInsetsGeometry?
-
The padding of control button.
final
- primaryButtonBackgroundColor → Color?
-
The background color of the primary button.
final
- primaryButtonTextStyle → TextStyle?
-
TextStyle for primary control button text.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textStyle → TextStyle?
-
TextStyle for control button text.
final
Methods
-
copyWith(
{Color? shadowColor, List< BoxShadow> ? boxShadow, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, Color? backgroundColor, Color? primaryButtonBackgroundColor, double? elevation, double? borderRadius, TextStyle? primaryButtonTextStyle}) → ControlButtonThemeData - Creates a copy of this theme, but with the given fields replaced with the new values.
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
lerp(
ControlButtonThemeData a, ControlButtonThemeData b, double t) → ControlButtonThemeData - Linearly interpolates between two ControlButtonThemeData.
-
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
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override