Import
import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;Usage
const ui.Popover(
trigger: Text('Show details'),
title: Text('More information'),
child: Text('Contextual content stays close to its trigger.'),
)API Reference
The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.
Popover
const Popover({
super.key,
this.size,
this.motion,
required this.trigger,
required this.child,
this.title,
this.description,
this.placement = PopoverPlacement.bottom,
this.alignment = PopoverAlignment.start,
this.offset = 12,
this.collisionPadding = 8,
this.width = 340,
this.padding,
this.backgroundColor,
this.borderColor = const Color(0x00000000),
this.borderRadius,
this.textStyle,
this.titleStyle,
this.descriptionStyle,
this.styleTrigger = true,
this.triggerBackgroundColor,
this.triggerForegroundColor,
this.triggerPadding,
this.triggerBorderRadius,
this.dismissOnTapOutside = true,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
size | ComponentSize? | No | null |
motion | ComponentMotion? | No | null |
trigger | Widget | Yes | — |
child | Widget | Yes | — |
title | Widget? | No | null |
description | Widget? | No | null |
placement | PopoverPlacement | No | PopoverPlacement.bottom |
alignment | PopoverAlignment | No | PopoverAlignment.start |
offset | double | No | 12 |
collisionPadding | double | No | 8 |
width | double | No | 340 |
padding | EdgeInsetsGeometry? | No | null |
backgroundColor | Color? | No | null |
borderColor | Color | No | const Color(0x00000000) |
borderRadius | double? | No | null |
textStyle | TextStyle? | No | null |
titleStyle | TextStyle? | No | null |
descriptionStyle | TextStyle? | No | null |
styleTrigger | bool | No | true |
triggerBackgroundColor | Color? | No | null |
triggerForegroundColor | Color? | No | null |
triggerPadding | EdgeInsetsGeometry? | No | null |
triggerBorderRadius | double? | No | null |
dismissOnTapOutside | 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/overlays/popover/popover.dart
This reference is generated from the Popover declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

