Flutter Button :
This flutter tutorial post is types of flutter button available in flutter.
- 1) RawMaterialButton
- 2) RaisedButton
- 3) FlatButton
- 4) DropdownButton
FlatButton: elevation property not available

RawMaterialButton in flutter
RawMaterialButton( onPressed: () {}, fillColor: Colors.black, constraints: BoxConstraints(minHeight: 50), elevation: 0, shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(5)), textStyle: TextStyle(fontSize: 16, fontFamily: 'OpenSans', color: Colors.white, fontWeight: FontWeight.w600), child: Text('Flutter Tutorial')),
RaisedButton in flutter
RaisedButton( color: Colors.black, onPressed: () { }, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(20.0), ), elevation: 1, child: Text('Flutter Tutorial'))
FlatButton in flutter
FlatButton( color: Colors.black, onPressed: () { }, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(20.0), ), //elevation: 1 not property available child: Text('Flutter Tutorial'))
DropdownButton in flutter
DropdownButton<String>( value: 'One', icon: Icon(Icons.arrow_downward), iconSize: 24, elevation: 16, style: TextStyle( color: Colors.deepPurple ), underline: Container( height: 2, color: Colors.deepPurpleAccent, ), onChanged: (String newValue) { setState(() { }); }, items: <String>['One', 'Two', 'Free', 'Four'] .map<DropdownMenuItem<String>>((String value) { return DropdownMenuItem<String>( value: value, child: Text(value), ); }) .toList(), )
The flutter tutorial is a website that bring you the latest and amazing resources of code. All the languages codes are included in this website. The languages like flutter, android, java,kotlin etc.with the help of this languages any user can develop the beautiful application
For more information about Flutter. visit www.fluttertutorial.in