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.
Chip
const Chip({
super.key,
required this.label,
this.leading,
this.trailing,
this.variant = ChipVariant.standard,
this.backgroundColor,
this.foregroundColor,
this.borderColor,
this.padding,
this.size,
this.borderRadius,
this.fontSize,
this.onTap,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
label | Widget | Yes | — |
leading | Widget? | No | null |
trailing | Widget? | No | null |
variant | ChipVariant | No | ChipVariant.standard |
backgroundColor | Color? | No | null |
foregroundColor | Color? | No | null |
borderColor | Color? | No | null |
padding | EdgeInsetsGeometry? | No | null |
size | ComponentSize? | No | null |
borderRadius | double? | No | null |
fontSize | double? | No | null |
onTap | VoidCallback? | 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/data_display/chip/chip.dart
This reference is generated from the Chip declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

