FCCElevatedButton class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FCCElevatedButton
Constructors
-
FCCElevatedButton({Key? key, Widget? child, String? text, FCCButtonVariant variant = FCCButtonVariant.filled, double? fontSize, FontWeight? fontWeight, String? fontFamily, Color? textColor, TextStyle? textStyle, TextAlign textAlign = TextAlign.center, Widget? prefix, Widget? suffix, VoidCallback? onPressed, Future<
void> onPressedAsync()?, VoidCallback? onLongPress, bool isEnabled = true, bool isLoading = false, bool use3DEffect = true, bool forceSolidGradient = false, bool enableTapEffect = true, bool isPill = false, bool rippleOnly = false, bool shimmerOnHover = false, Duration animationDuration = const Duration(milliseconds: 100), double borderRadius = 12.0, double elevation = 10.0, double? height, double? width, FCCButtonSize size = FCCButtonSize.medium, bool iconOnly = false, Gradient? gradient, List<BoxShadow> ? boxShadow, Color? backgroundColor, Color? borderColor, Color? disabledColor, Color? loadingColor, String? loadingText, TextStyle? loadingTextStyle, bool showAsyncLoadingOverlay = true, Duration asyncSuccessDuration = const Duration(milliseconds: 700), Duration asyncErrorDuration = const Duration(milliseconds: 900), Widget? disabledChild, FCCHapticFeedbackMode hapticMode = FCCHapticFeedbackMode.medium, bool enableClickSound = false, bool enableHoldToConfirm = false, Duration holdDuration = const Duration(milliseconds: 800), VoidCallback? onHoldComplete, String? tooltip, String? semanticLabel, bool excludeSemantics = false}) -
const
Properties
- animationDuration → Duration
-
final
- asyncErrorDuration → Duration
-
final
- asyncSuccessDuration → Duration
-
final
- backgroundColor → Color?
-
final
- borderColor → Color?
-
final
- borderRadius → double
-
final
-
boxShadow
→ List<
BoxShadow> ? -
final
- child → Widget?
-
final
- disabledChild → Widget?
-
final
- disabledColor → Color?
-
final
- elevation → double
-
final
- enableClickSound → bool
-
final
- enableHoldToConfirm → bool
-
final
- enableTapEffect → bool
-
final
- excludeSemantics → bool
-
final
- fontFamily → String?
-
final
- fontSize → double?
-
final
- fontWeight → FontWeight?
-
final
- forceSolidGradient → bool
-
final
- gradient → Gradient?
-
final
- hapticMode → FCCHapticFeedbackMode
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
final
- holdDuration → Duration
-
final
- iconOnly → bool
-
final
- isEnabled → bool
-
final
- isLoading → bool
-
final
- isPill → bool
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loadingColor → Color?
-
final
- loadingText → String?
-
final
- loadingTextStyle → TextStyle?
-
final
- onHoldComplete → VoidCallback?
-
final
- onLongPress → VoidCallback?
-
final
- onPressed → VoidCallback?
-
final
-
onPressedAsync
→ Future<
void> Function()? -
final
- prefix → Widget?
-
final
- rippleOnly → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticLabel → String?
-
final
- shimmerOnHover → bool
-
final
- showAsyncLoadingOverlay → bool
-
final
- size → FCCButtonSize
-
final
- suffix → Widget?
-
final
- text → String?
-
final
- textAlign → TextAlign
-
final
- textColor → Color?
-
final
- textStyle → TextStyle?
-
final
- tooltip → String?
-
final
- use3DEffect → bool
-
For solid (non-gradient) filled/tonal buttons, this enables neumorphic styling.
For gradient-filled buttons, Material elevation is used (FAB-like).
final
- variant → FCCButtonVariant
-
final
- width → double?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< FCCElevatedButton> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
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
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited