imagebutton 0.0.6 copy "imagebutton: ^0.0.6" to clipboard
imagebutton: ^0.0.6 copied to clipboard

ImageButton is simple plugin that allows you to use your images as simple buttons with two different faces (pressed / unpressed).

ImageButton #

Button composed of two images.

About #

ImageButton is simple plugin that allows you to use your images as simple buttons with two different faces (pressed / unpressed).

How To Use ImageButton #

Widget build(BuildContext context) {
    return ImageButton(
        children: <Widget>[],
        width: 91,
        height: 36,
        paddingTop: 5,
        pressedImage: Image.asset(
          "assets/pressed.png",
        ),
        unpressedImage: Image.asset("assets/normal.png"),
        onTap: () {
          print('test');
        },
    );
}

ImageButton Properties #

property description
children
unpressedImage
pressedImage
label
onTap
width
height
paddingTop
mainAxisAlignment
crossAxisAlignment
12
likes
40
pub points
73%
popularity

Publisher

verified publisherversiontwo.sk

ImageButton is simple plugin that allows you to use your images as simple buttons with two different faces (pressed / unpressed).

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on imagebutton