flutter_tooltip 0.1.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 79

Flutter Slider Indicator #

Tooltip function built in for flutter. Please press star in my repo if you like it. Thank you.

Screenshots #

First tooltip Second tooltip

Usage #

class Tips {
  static GlobalKey key1 = GlobalKey();
  static GlobalKey key2 = GlobalKey();

  static List<TooltipModel> tipsList = [
    TooltipModel(key: key1, child: Text("This my first tooltip")),
    TooltipModel(key: key2, child: Text("This my second tooltip"))

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);
  final String title;

  _MyHomePageState createState() => _MyHomePageState();

class _MyHomePageState extends State<MyHomePage> {
  Widget build(BuildContext context) {
    FlutterTooltip.showTips(Tips.tipsList, context);

    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      body: Column(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: <Widget>[
            key: Tips.key1,
            color: Colors.red,
            padding: EdgeInsets.all(8.0),
            child: Text("Second Tooltip will highlight here"),
            key: Tips.key2,
            color: Colors.red,
            padding: EdgeInsets.all(8.0),
            child: Text("Fist Tooltip will highlight here"),

Example #

Please find example in here: Example

Available parameter #

ParameterRequiredDefault Value
BuildContext contexttrue
BoxDecoration tipsDecorationfalseRadius.circular(8), color: Colors.blueGrey
BoxDecoration tipsActionDecorationfalseRadius.circular(8), color: Colors.white
EdgeInsetsGeometry tipsPaddingfalsevertical: 8.0, horizontal: 16.0
EdgeInsetsGeometry tipsActionPaddingfalsevertical: 8.0, horizontal: 16.0
Color tipsActionTextColorfalseColors.blueGrey
String tipsActionTextNextfalseNext
String tipsActionTextDonefalseDone

0.1.0 - 13/09/2019 #

  • Initial release


example #

A new Flutter project.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  flutter_tooltip: ^0.1.0

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:flutter_tooltip/flutter_tooltip.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jan 25, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4
  • Flutter: 1.12.13+hotfix.5

Health issues and suggestions

Document public APIs. (-1 points)

12 out of 12 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
flutter_slider_indicator ^0.2.0 0.2.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies