gradient elevated button flutter
buildElevatedButton() {
return Container(
width: 250,
child: ElevatedButton(
onPressed: (){},
style: ElevatedButton.styleFrom(
padding: EdgeInsets.all(0.0),
primary: Colors.transparent,
onPrimary: iconColors,
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(80.0)),
),
child: Ink(
decoration: BoxDecoration(
gradient: LinearGradient(colors: [Color(0xffe15084), Color(0xff245587)],
begin: Alignment.centerLeft,
end: Alignment.centerRight,
),
borderRadius: BorderRadius.circular(30.0)
),
child: Container(
width: 300,
height: 50,
alignment: Alignment.center,
child: Text("Login", style: TextStyle(color: Colors.white),),
),
),
),
);
}