super_tooltip_ext 1.0.6
super_tooltip_ext: ^1.0.6 copied to clipboard
Super flexible Tooltip class that gets opend in the screens overlay
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:super_tooltip/super_tooltip.dart';
import 'card.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',
theme: new ThemeData(
primarySwatch: Colors.blue,
),
home: new MyHomePage(),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({
Key? key,
}) : super(key: key);
@override
_MyHomePageState createState() => new _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
SuperTooltip? tooltip;
final buttonKey = GlobalKey();
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: ListView.builder(
itemCount: 4,
itemBuilder: (context, index) => MyCard(index),
),
),
);
}
}