TButtonTheme class
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
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