Advertisement
Guest User

Untitled

a guest
Jan 18th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 1.16 KB | None | 0 0
  1.  showDialog(
  2.       context: bcontext,
  3.       builder: (BuildContext context) {
  4.         // return object of type Dialog
  5.         return AlertDialog(
  6.           title: new Text("Edit ParkSpot name"),
  7.           content: Container(
  8.             margin: EdgeInsets.fromLTRB(0, 10, 0, 10),
  9.             child: new TextField(
  10.               decoration: new InputDecoration(
  11.                 focusedBorder: OutlineInputBorder(
  12.                     borderSide:
  13.                         BorderSide(color: Theme.of(context).primaryColor)),
  14.                 border: OutlineInputBorder(
  15.                     borderSide:
  16.                         BorderSide(color: Theme.of(context).primaryColor)),
  17.                 filled: true,
  18.                 labelText: "Email",
  19.               ),
  20.               controller: nameChangeController,
  21.               autofocus: false,
  22.             ),
  23.           ),
  24.           actions: <Widget>[
  25.             new FlatButton(
  26.               child: new Text(
  27.                 "Confirm",
  28.                 style: TextStyle(color: Theme.of(context).errorColor),
  29.               ),
  30.               onPressed: () {},
  31.             ),
  32.           ],
  33.         );
  34.       },
  35.     );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement