Answers for "gradient color in raisedbutton"

CSS
2

how to change button gradient

.Button:hover { /*this example is used for a hover state*/
background: linear-gradient( 90deg,Color1,Color2 ) ; 
}
/*input the degree with "deg" of the gradient,
then first and second colors*/
Posted by: Guest on April-09-2020
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

Browse Popular Code Answers by Language