flutter_tooltip_plus 0.0.1
flutter_tooltip_plus: ^0.0.1 copied to clipboard
A lightweight and customizable Flutter tooltip widget for displaying helpful hints and contextual information in a beautiful way.
Flutter Tooltip Plus #
A lightweight and customizable Flutter tooltip widget for displaying helpful hints and contextual information with smooth animations and flexible positioning.
✨ Features #
- Fully customizable UI
- Smooth scale animation
- Easy integration
- Supports any widget as tooltip content
- Works with overlay system
- Custom background and border radius
- Lightweight and performant
Example #
📦 Installation #
Add this to your pubspec.yaml:
dependencies:
flutter_tooltip_plus: latest_version
Then run:
flutter pub get
🚀 Usage #
Import the package:
import 'package:flutter_tooltip_plus/flutter_tooltip_plus.dart';
Wrap any widget with FlutterTooltip:
FlutterTooltip(
background: Colors.amber,
borderRadius: BorderRadius.circular(12),
padding: EdgeInsets.all(12),
content: Column(
mainAxisSize: MainAxisSize.min,
children: const [
Text(
"Tool tip content",
style: TextStyle(color: Colors.black),
),
],
),
child: const Icon(Icons.info_outline_rounded),
),
⚙️ Parameters #
| Property | Description |
|---|---|
child |
Widget that triggers the tooltip |
content |
Widget displayed inside tooltip |
background |
Tooltip background color |
borderRadius |
Corner radius of the tooltip |
padding |
Internal spacing |
🛠️ Customization Tips #
- Use
backgroundto match your app theme - Adjust
borderRadiusfor sharp or rounded style - Wrap large content in
SingleChildScrollViewif needed - Add animations using built-in transitions
🤝 Contributions #
Pull requests are welcome! If you find a bug or want a feature, feel free to open an issue.