Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- flutter:
- assets:
- - images/
- Image.asset("images/myimage.jpg") // again, this in an example
- Material(
- child: Stack(
- children: <Widget>[
- InkWell(
- onTap: () {}, // The ripple only shows up if you have a onTap method.
- child: Container(
- height: 300, // 300 is a random value but has bigger height than the image itself.
- child: Image.asset("images/myimage.jpg"),
- ),
- ),
- ],
- ),
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement