Popover
Open an interactive collision-aware surface from a pointer or keyboard trigger.
Open an interactive collision-aware surface from a pointer or keyboard trigger.
Contract
| Axis | Contract |
|---|---|
| Layer size | layerSize applies to the complete interactive layer. Its default width is fixed at TRMeasurements.overlayWidthSm, while height follows content until the safe viewport clamps it. |
Install
Add the package, then import its public library.
flutter pub add tinyrack_uiimport 'package:tinyrack_ui/tinyrack_ui.dart';Playground
Usage
import 'package:material_ui/material_ui.dart';
import 'package:tinyrack_ui/tinyrack_ui.dart';
const TRPopover(
trigger: Text('Details'),
content: Text('Rack alpha'),
)Examples
API
Layer properties
| Prop | Type / default | Purpose |
|---|---|---|
layerSize | TRLayerSize · fixed overlayWidthSm / content height | Sizes the complete layer instead of only its content panel. |