simple_tooltip 0.1.8 copy "simple_tooltip: ^0.1.8" to clipboard
simple_tooltip: ^0.1.8 copied to clipboard

outdated

A simple library for creating tooltips

example/lib/main.dart

import 'dart:math';

import 'package:example/basics_example_page.dart';
import 'package:flutter/material.dart';
import 'package:simple_tooltip/simple_tooltip.dart';
import 'animated_example_page.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: OptionsPage(),
    );
  }
}

class OptionsPage extends StatelessWidget {
  const OptionsPage({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Simple Tooltip"),
      ),
      body: Container(
        height: double.infinity,
        width: double.maxFinite,
        child: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              RaisedButton(
                child: Text("Animated example"),
                onPressed: () {
                  Navigator.of(context).push(MaterialPageRoute(
                    builder: (ctx) =>
                        AnimatedExamplePage(title: 'Flutter Demo Home Page'),
                  ));
                },
              ),
              RaisedButton(
                child: Text("Basics"),
                onPressed: () {
                  Navigator.of(context).push(MaterialPageRoute(
                    builder: (ctx) => BasicsExamplePage(),
                  ));
                },
              ),
            ],
          ),
        ),
      ),
    );
  }
}
75
likes
0
pub points
95%
popularity

Publisher

unverified uploader

A simple library for creating tooltips

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on simple_tooltip