title: Flutter button with a png with transparency
body: <p>it would be simple but i can't make it work like i would like to. I would like to have a custom made png and make it act like a RaisedButton where I can edit the splashColor, highlightColor, adding a border ( widht and colors of it) and have the ripple effect of Ink but only on the visible part of the png. Trying this at the moment: </p>
  
  <pre><code>class MyApp extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        appBar: new AppBar(
          title: new Text("Buttons practice"),
        ),
        body: new Container(
          color: Colors.amber,
          child: new Column(
              children: &lt;Widget&gt;[
          //Button1
          new Row(
          children: &lt;Widget&gt;[
              Container(
              height: 150,
              width: 150,
              child: new RaisedButton(
                onPressed: () {},
                child: new Image.asset(
                  "assets/Freccia.png",
                ),
              ))
          ],
        ),
  
        //Button2
        new Row(
          children: &lt;Widget&gt;[
            Container(
              height:150 ,
              width: 150,
              child: new FlatButton(onPressed: () {}, child: new Image.asset(
                "assets/Freccia.png",)),
            )],
            ),
  
            //Button3
            new Row(
              children: &lt;Widget&gt;[
                Container(
                  height: 150,
                  width: 150,
                  child: new OutlineButton(
                      onPressed: () {},
                      child: new Image.asset(
                          "assets/Freccia.png")
                  ),
                )
              ],
            ),
          ],
        ),
      ),);
    }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ld4JM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ld4JM.jpg" alt="enter image description here"></a></p>