raisedbutton flutter icon code example

Example 1: flutter raisedbutton example

RaisedButton(child: Text("Rock & Roll"),
                onPressed: _changeText,
                color: Colors.red,
                textColor: Colors.yellow,
                padding: EdgeInsets.fromLTRB(10, 10, 10, 10),
                splashColor: Colors.grey,
              )

Example 2: flutter RaisedButton with icon

// JZ
Container(
                  height: 25.0,
                  padding: EdgeInsets.only(left: 10.0),
                  child: RaisedButton.icon(
                    color: Colors.white,
                    label: Text(
                      'Te amo, pero no eres para mi',
                      style: TextStyle(fontSize: 13.0),
                    ),
                    icon: Icon(
                      Icons.ac_unit_outlined,
                      size: 13.0,
                    ),
                    onPressed: () {},
                  ),
                )

Example 3: flutter raised button with icon

FlatButton.icon(onPressed: null, icon: null, label: null);
RaisedButton.icon(onPressed: null, icon: null, label: null);

Tags:

C Example