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