FlintButton class
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})
-
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