mc_button 0.0.1 copy "mc_button: ^0.0.1" to clipboard
mc_button: ^0.0.1 copied to clipboard

Simple Gradient Button.

mc_button #

Simple Widget Gradient Button.

Installation #

You just need to add mc_button as a dependency in your pubspec.yaml file.

dependencies:
  mc_button: ^0.0.1

Example #

In these examples, show red and orange button.

MCButton(
    height: 80,
    width: 160,
    firstColor: Colors.orange,
    secondColor: Colors.red,
    //circular: 20, // change it for border radius
    child: const Center(
        child: Text('hello',style: TextStyle(
            color: Colors.white,
            fontSize: 28,
            fontWeight: FontWeight.w600)
        ),
    ),
    onTap: (){
        debugPrint('pressed');
    },
);
0
likes
130
points
9
downloads

Publisher

unverified uploader

Weekly Downloads

Simple Gradient Button.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on mc_button