The new flutter smart and simple dialog package that is easy to understand and simple to implement
All you need is simple import library for this flutter package
import 'package:simple_dialogs_flutter/simple_dialogs_flutter.dart';
example of implementation pass some text in this dialog
SimpleDialogs.showinfoDialog(context: context, title: "Something insert here");
In the button
MaterialButton(
color: Colors.blue,
height: 50,
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(10)),
),
textColor: Colors.white,
child: Text('Show Info Dialog',),
onPressed: () {
SimpleDialogs.showinfoDialog(context: context, title: "Something insert here");
},