Skip to content
On this page

Skeleton

A placeholder that preserves content space while data loads.

Skeleton in FluttyUISkeleton in FluttyUI dark theme

Import

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

API Reference

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

Skeleton

const Skeleton({
  super.key,
  this.width,
  this.size,
  this.height,
  this.color,
  this.borderRadius,
  this.shape = BoxShape.rectangle,
  this.margin = EdgeInsets.zero,
});
ParameterTypeRequiredDefault
keyKey?Nonull
widthdouble?Nonull
sizeComponentSize?Nonull
heightdouble?Nonull
colorColor?Nonull
borderRadiusdouble?Nonull
shapeBoxShapeNoBoxShape.rectangle
marginEdgeInsetsGeometryNoEdgeInsets.zero

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/feedbacks/skeleton/skeleton.dart

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

DartFlutter

Get started with FluttyUI