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.
TagGroup
const TagGroup({
super.key,
required this.tags,
this.size,
required this.onSelectionChanged,
this.selectedValues = const [],
this.onRemove,
this.selectionMode = TagSelectionMode.multiple,
this.spacing,
this.runSpacing,
this.padding = EdgeInsets.zero,
this.backgroundColor,
this.selectedBackgroundColor,
this.foregroundColor,
this.selectedForegroundColor,
this.borderColor = const Color(0x00000000),
this.selectedBorderColor = const Color(0x00000000),
this.borderRadius,
this.tagPadding,
this.fontSize,
this.iconSize,
this.enabled = true,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
tags | List<TagItem<T>> | Yes | — |
size | ComponentSize? | No | null |
onSelectionChanged | ValueChanged<List<T>> | Yes | — |
selectedValues | List<T> | No | const [] |
onRemove | ValueChanged<T>? | No | null |
selectionMode | TagSelectionMode | No | TagSelectionMode.multiple |
spacing | double? | No | null |
runSpacing | double? | No | null |
padding | EdgeInsetsGeometry | No | EdgeInsets.zero |
backgroundColor | Color? | No | null |
selectedBackgroundColor | Color? | No | null |
foregroundColor | Color? | No | null |
selectedForegroundColor | Color? | No | null |
borderColor | Color | No | const Color(0x00000000) |
selectedBorderColor | Color | No | const Color(0x00000000) |
borderRadius | double? | No | null |
tagPadding | EdgeInsetsGeometry? | No | null |
fontSize | double? | No | null |
iconSize | double? | No | null |
enabled | bool | No | true |
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/collections/tag_group/tag_group.dart
This reference is generated from the TagGroup declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

