Import
import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;Usage
const ui.Card(
child: Text('Your content goes here'),
)API Reference
The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.
Card
const Card({
super.key,
required this.child,
this.padding,
this.margin = EdgeInsets.zero,
this.backgroundColor,
this.borderRadius,
this.border,
this.boxShadow,
this.width,
this.height,
this.onTap,
this.clipBehavior = Clip.antiAlias,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
child | Widget | Yes | — |
padding | EdgeInsetsGeometry? | No | null |
margin | EdgeInsetsGeometry | No | EdgeInsets.zero |
backgroundColor | Color? | No | null |
borderRadius | double? | No | null |
border | BoxBorder? | No | null |
boxShadow | List<BoxShadow>? | No | null |
width | double? | No | null |
height | double? | No | null |
onTap | VoidCallback? | No | null |
clipBehavior | Clip | No | Clip.antiAlias |
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/card/card.dart
This reference is generated from the Card declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

