Add Dialog with Pageview to select new house, and then drop a pin where the house is, then zoom map to that area.
This commit is contained in:
40
lib/dialogs/dialogs.dart
Normal file
40
lib/dialogs/dialogs.dart
Normal file
@@ -0,0 +1,40 @@
|
||||
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<Dialogs> {
|
||||
@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"),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user