import 'package:flutter/material.dart'; import 'package:wheres_my_sign/widgets/custom_dialog_box.dart'; class Dialogs extends StatefulWidget { @override _DialogsState createState() => _DialogsState(); } class _DialogsState extends State { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text("Custom Dialog In Flutter"), centerTitle: true, automaticallyImplyLeading: false, ), body: Container( child: Center( child: ElevatedButton( onPressed: () { showDialog( context: context, builder: (BuildContext context) { return CustomDialogBox( title: "Custom Dialog Demo", descriptions: "Hii all this is a custom dialog in flutter and you will be use in your flutter applications", text: "Yes", ); }, ); }, child: Text("Custom Dialog"), ), ), ), ); } }