I'm new to Flutter programming and I want to ask is it possible to make image as button background flutter? Here's my image asset:
final _backgroundButton = new AssetImage("assets/background_button.png");
and here's my button:
RaisedButton(
child: const Text('LANJUTKAN'),
color: Theme.of(context).accentColor,
elevation: 0.0,
splashColor: Colors.blueGrey,
onPressed: () {
// Perform some action
},
),
Anyone know how to do it? it's okay for me to change the raised button to flat button or anything else as long as I can set image as background. Thank you!