Skip to content
On this page

LinkButton

A lightweight text action with configurable emphasis and underline.

LinkButton in FluttyUILinkButton in FluttyUI dark theme

Import

import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;

Usage

ui.LinkButton(
  text: 'Learn more',
  onPressed: () {},
  underline: true,
)

API Reference

The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.

LinkButton

const LinkButton({
  super.key,
  required this.text,
  required this.onPressed,
  this.color,
  this.fontSize,
  this.size,
  this.fontWeight = FontWeight.w400,
  this.underline = false,
  this.isDisabled = false,
});
ParameterTypeRequiredDefault
keyKey?Nonull
textStringYes—
onPressedVoidCallback?Yes—
colorColor?Nonull
fontSizedouble?Nonull
sizeComponentSize?Nonull
fontWeightFontWeightNoFontWeight.w400
underlineboolNofalse
isDisabledboolNofalse

Application Setup

Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.

Source

lib/src/widgets/buttons/link_button/link_button.dart

This reference is generated from the LinkButton declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

DartFlutter

Get started with FluttyUI