post_tip 0.1.0 copy "post_tip: ^0.1.0" to clipboard
post_tip: ^0.1.0 copied to clipboard

A PostTip widget helps you easily build ToolTip widget around a target widget using CompositedTransformTarget and CompositedTransformFollower

PostTip #

PostTip is a flutter tooltip library that can easily add tooltip around a target widget.There are great tooltip libraries out there such as ElToolTip which I mostly inspired and JustToolTip, SuperToolTip.

The difference between this library and others is its implementation. PostTip uses CompositedTransformFollower and CompositedTransformTarget to set the position of tooltip content and child widget.

I would also recommend you to use ElToolTip as it it safer to use, has more stars and features.

This project is at the first stage of ToolTip features and will be updated more features soon.

Getting started #

pubspec.yaml

post_it: <latest_version>

project

MaterialApp(
  title: 'PostTip Demo',
  theme: ThemeData(
    colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
  ),
  home: Scaffold(
    body: Center(
      child: PostTip(
        position: PostTipPosition.topStart,
        distance: 4,
        backgroundColor: Colors.lightBlue,
        content: const Padding(
          padding: EdgeInsets.symmetric(horizontal: 8, vertical: 5),
          child: Text('PostTip'),
        ),
        child: Container(
          color: Colors.yellow,
          padding: const EdgeInsets.all(8),
          child: const Icon(
            Icons.favorite,
            color: Colors.pink,
            size: 64.0,
          ),
        ),
      ),
    ),
  ),
);

Demo #

4
likes
150
points
38
downloads

Publisher

unverified uploader

Weekly Downloads

A PostTip widget helps you easily build ToolTip widget around a target widget using CompositedTransformTarget and CompositedTransformFollower

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on post_tip