tooltip_pro 0.0.8 copy "tooltip_pro: ^0.0.8" to clipboard
tooltip_pro: ^0.0.8 copied to clipboard

A powerful and flexible Flutter package for creating highly customizable tooltips with rich content, shadows, blurs, and precise positioning control.

example/lib/main.dart

import 'package:tooltip_pro/tooltip_pro.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Tooltip Plus Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
      ),
      home: const MyHomePage(title: 'Tooltip Plus Demo'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            const Text('You have pushed the button this many times:'),
            TooltipPro.minimal(
              showAtTapPosition: true,
              text: "Counter: $_counter",
              child: Text(
                '$_counter',
                style: Theme.of(context).textTheme.headlineMedium,
              ),
            ),
          ],
        ),
      ),
      floatingActionButton: TooltipPro.minimal(
        spacing: 30,

        arrowDirection: TooltipArrowDirection.left,
        direction: TooltipDirection.bottom,
        text: "Add Item",

        border: TooltipBorderConfig(
          enabled: true,
          color: Colors.black,
          width: 1,
          radius: 100,
        ),
        autoDismiss: Duration(seconds: 3),
        // direction: TooltipDirection.left,
        onPressed: _incrementCounter,
        child: FloatingActionButton(
          onPressed: null,
          child: const Icon(Icons.add),
        ),
      ),
    );
  }
}
1
likes
150
points
206
downloads

Publisher

unverified uploader

Weekly Downloads

A powerful and flexible Flutter package for creating highly customizable tooltips with rich content, shadows, blurs, and precise positioning control.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on tooltip_pro