TButtonTheme class

Annotations

Constructors

TButtonTheme({required TWidgetTheme baseTheme, required TButtonType type, required TButtonSize size, required Color color, OutlinedBorder? shape, double? borderRadius = 6.0, double? elevation = 0.0, Duration? animationDuration = const Duration(milliseconds: 100), Curve? animationCurve = Curves.easeInOut, double? scaleOnPress = 0.95, WidgetStateProperty<TextStyle?>? textStyle, WidgetStateProperty<Color?>? shadowColor})
const
TButtonTheme.create(BuildContext context, {TButtonType? type, TButtonSize? size, Color? color, OutlinedBorder? shape})
factory

Properties

animationCurve Curve?
final
animationDuration Duration?
final
baseTheme TWidgetTheme
final
borderRadius double?
final
color Color
final
elevation double?
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleOnPress double?
final
shadowColor WidgetStateProperty<Color?>?
final
shape OutlinedBorder?
final
size TButtonSize
final
textStyle WidgetStateProperty<TextStyle?>?
final
type TButtonType
final

Methods

buildButtonContent({IconData? icon, String? text, bool isLoading = false, String loadingText = 'Loading...', Widget? child, Set<WidgetState> states = const {}}) Widget
copyWith({TWidgetTheme? baseTheme, TButtonType? type, TButtonSize? size, Color? color, OutlinedBorder? shape, double? borderRadius, double? elevation, Duration? animationDuration, Curve? animationCurve, double? scaleOnPress, WidgetStateProperty<TextStyle?>? textStyle, WidgetStateProperty<Color?>? shadowColor}) TButtonTheme
getButtonStyle() ButtonStyle
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