Tooltip
A Tooltip wrapper with a light (default) and a dark background preset.
CLI
Install this component into your project:
tooltip
$
flutter_beautify add tooltipVariants
FBTooltip.standard() · FBTooltip.dark()
Key parameters
| Parameter | Type | Default |
|---|---|---|
message | String | required |
child | Widget | required — the widget the tooltip wraps |
Usage
dart
import 'package:your_app/widgets/tooltip.dart';
FBTooltip.dark(message: 'Delete', child: const Icon(Icons.delete));