A Flutter custom common button that frequently use in flutter project.

Features

TODO: List what your package can do. Maybe include images, gifs, or videos.

How to use it.

common_button

the default effects is Icons.favorite

  CommonButton(), 
  // give some parameter 

how-to-use-it

and you can also define custom use.

    CommonButton(
        onPress: _incrementCounter,
        text: "Counter",
        textAlign: Alignment.center,
        tColor: Colors.white,
        bgColor: Colors.orange,
        isIcon: false,
        customShape: 1,
    ),

parameters

parameterdescriptiondefault
customShape1 StadiumBorder,2 RoundedRectangleBorder, 3 CircleBorderStadiumBorder
bgColoranimation duration to change isLiked state
tColortext color
isIconicon enable for true

Libraries

common_button