show_dialog 1.0.3 show_dialog: ^1.0.3 copied to clipboard
A Package for Launch Dialogs As Easy As Poosible Like About Dialog, Loading Dialog and Many More
import 'package:flutter/material.dart';
import 'package:show_dialog/show_dialog.dart' as dialog;
class MyApp extends StatelessWidget{
@override
Widget build (BuildContext context){
return Scaffold(
body: Column(
children: <Widget> [
Container(
child: RaisedButton(
child: Text("About Dialog"),
onPressed: (){
dialog.aboutDialog(context, "title", "content");
}
),
),
Container(
child: RaisedButton(
child: Text("Loading Dialog"),
onPressed: (){
dialog.loadingDialog(context, 3);
}
),
),
]
),
);
}
}