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.
Surface
const Surface({
super.key,
required this.child,
this.variant = SurfaceVariant.defaultVariant,
this.color,
this.padding = EdgeInsets.zero,
this.margin = EdgeInsets.zero,
this.width,
this.height,
this.borderRadius,
this.border,
this.elevation,
this.clipBehavior,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
child | Widget | Yes | — |
variant | SurfaceVariant | No | SurfaceVariant.defaultVariant |
color | Color? | No | null |
padding | EdgeInsetsGeometry | No | EdgeInsets.zero |
margin | EdgeInsetsGeometry | No | EdgeInsets.zero |
width | double? | No | null |
height | double? | No | null |
borderRadius | double? | No | null |
border | BoxBorder? | No | null |
elevation | double? | No | null |
clipBehavior | Clip? | No | null |
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/layouts/surface/surface.dart
This reference is generated from the Surface declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

