flutter_awesome_tooltip

easy-to-use and lightweight flutter tooltip library

Features

Tooltip library for Flutter

Getting started

Option Type Default Description
message String `` String text tooltip.
child Widget child for icon or others child stuff
direction Enum LibraryTooltipDirection direction for tooltip
closeButtonStyle style style style for input close x
TextStyle TextStyle style style for text tooltip
Color placehoColorlder Color Color Text

Usage

For use this just install then follow the code below

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

class MyWidget extends StatefulWidget {
  const MyWidget({super.key});

  @override
  State<MyWidget> createState() => _MyWidgetState();
}

class _MyWidgetState extends State<MyWidget> {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: const FlutterAwesomeTooltip(
        message: 'This is a tooltip',
        child: Icon(Icons.info),
        direction: LibraryTooltipDirection.top,
      ),
    );
  }
}

Additional information

More information : https://github.com/zidniryi/flutter_awesome_tooltip