Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- showDialog(
- context: bcontext,
- builder: (BuildContext context) {
- // return object of type Dialog
- return AlertDialog(
- title: new Text("Edit ParkSpot name"),
- content: Container(
- margin: EdgeInsets.fromLTRB(0, 10, 0, 10),
- child: new TextField(
- decoration: new InputDecoration(
- focusedBorder: OutlineInputBorder(
- borderSide:
- BorderSide(color: Theme.of(context).primaryColor)),
- border: OutlineInputBorder(
- borderSide:
- BorderSide(color: Theme.of(context).primaryColor)),
- filled: true,
- labelText: "Email",
- ),
- controller: nameChangeController,
- autofocus: false,
- ),
- ),
- actions: <Widget>[
- new FlatButton(
- child: new Text(
- "Confirm",
- style: TextStyle(color: Theme.of(context).errorColor),
- ),
- onPressed: () {},
- ),
- ],
- );
- },
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement