FlintButton class

Inheritance

Constructors

FlintButton({required String text, required String url, ButtonStyle? style, EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 24.0, vertical: 12.0), BorderRadius borderRadius = const BorderRadius.circular(6.0), BoxShadow shadow = const BoxShadow(offsetY: 2, blurRadius: 4, color: 'rgba(0, 0, 0, 0.1)'), ButtonState state = ButtonState.enabled, String? semanticLabel, bool fullWidth = false, ButtonSize size = ButtonSize.medium, String? icon})

Properties

borderRadius BorderRadius
final
fullWidth bool
final
hashCode int
The hash code for this object.
no setterinherited
icon String?
final
padding EdgeInsets
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel String?
final
shadow BoxShadow
final
size ButtonSize
final
state ButtonState
final
style ButtonStyle?
final
text String
final
url String
final

Methods

buildTemplate() FlintWidget
Build the widget template - MUST be implemented by subclasses
override
copyWith({String? text, String? url, ButtonStyle? style, EdgeInsets? padding, BorderRadius? borderRadius, BoxShadow? shadow, ButtonState? state, String? semanticLabel, bool? fullWidth, ButtonSize? size, String? icon}) FlintButton
Creates a copy of this button with updated properties
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toHtml() String
Render to HTML (for emails, web)
override
toJson() Map<String, dynamic>
Render to intermediate JSON (for APIs, mobile apps, etc.)
override
toString() String
A string representation of this object.
inherited
toText() String
Render to plain text (fallback, CLI, etc.)
override

Operators

operator ==(Object other) bool
The equality operator.
inherited