Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- floatingActionButton: new FloatingActionButton(
- tooltip: 'New Post',
- onPressed: (){
- showDialog(context: context,
- builder:(BuildContext context){
- return new AlertDialog(
- title: new Text('New Post'),
- contentPadding: const EdgeInsets.fromLTRB(1.0,0.0,1.0,0.0),
- content:new SingleChildScrollView(
- child:new ListBody(
- children: <Widget>[
- ListTile(
- leading:Icon(Icons.subject),
- title:TextFormField(
- initialValue: "",
- onSaved: (val) => board.subject = val,
- validator: (val) => val =="" ? val:null,
- ),
- ),
- ],
- )
- )
- );
- }
- );
- },
- child: new Icon(Icons.add),
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement