diff --git a/lib/main.dart b/lib/main.dart index c982db0..6da579d 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -66,11 +66,40 @@ class RandomWordsState extends State { return new Scaffold( appBar: new AppBar( title: new Text('MinaOTP'), + actions: [ + new IconButton( + icon: new Icon(Icons.add), + onPressed: _showModal, + ) + ], ), body: _buildSuggestions(), ); } + void _showModal() { + showModalBottomSheet( + context: context, + builder: (BuildContext context) { + return new Column( + mainAxisSize: MainAxisSize.min, + children: [ + new ListTile( + leading: new Icon(Icons.camera_alt), + title: new Text('Scan'), + onTap: () => {}, + ), + new ListTile( + leading: new Icon(Icons.create), + title: new Text('Mannual'), + onTap: _pushSaved, + ), + ] + ); + } + ); + } + void _pushSaved() { Navigator.of(context).push( new MaterialPageRoute( @@ -148,6 +177,6 @@ class RandomWordsState extends State { } void _updateToken() { - + } } \ No newline at end of file