Skip to content
On this page

Typo

Text styles for headings, body content, captions, and code.

Typo in FluttyUITypo in FluttyUI dark theme

Import

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

Usage

const ui.Typo(
  'Build something beautiful',
  type: ui.TypoVariant.h2,
  weight: ui.TypoWeight.semibold,
)

API Reference

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

Typo

const Typo(
  this.text, {
  super.key,
  this.type = TypoVariant.body,
  this.align = TypoAlign.start,
  this.color = TypoColor.defaultColor,
  this.weight,
  this.truncate = false,
});
ParameterTypeRequiredDefault
textStringYes—
keyKey?Nonull
typeTypoVariantNoTypoVariant.body
alignTypoAlignNoTypoAlign.start
colorTypoColorNoTypoColor.defaultColor
weightTypoWeight?Nonull
truncateboolNofalse

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/typography/typo/typo.dart

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

DartFlutter

Get started with FluttyUI