Answers for "how to add gradient to button in flutter elevated button"

0

how to add gradient to button in flutter elevated button

RaisedGradientButton(
  child: Text(
    'Button',
    style: TextStyle(color: Colors.white),
  ),
  gradient: LinearGradient(
    colors: <Color>[Colors.green, Colors.black],
  ),
  onPressed: (){
    print('button clicked');
  }
),
Posted by: Guest on August-10-2021

Code answers related to "how to add gradient to button in flutter elevated button"

Browse Popular Code Answers by Language