asbutton 0.0.1

Flutter Android iOS web

A flutter package ASButton is a delightful library for different type of button i.e with custom image, Ssystem Icon, custom text, background color with corner radius

asbutton #

A new Flutter package.

Getting Started #

How to use ? #


//DEFINE BUTTON ACTION
pressAction() {
   return _scaffoldKey.currentState
       .showSnackBar(new SnackBar(content: new Text("THIS IS BUTTON ACTION")));
 }
 
//BUTTON WITH TEXT, BACKGOUND COLOR AND CORNER RADIUS
Container(
  margin: EdgeInsets.fromLTRB(50, 50, 50, 10),
  height: 50,
  child: ASButton(pressAction, "Login",
      btnColor: Colors.blue, cornerRadius: 50.0),
),

//BUTTON WITH TEXT ACTION AND TEXT 
Container(
    margin: EdgeInsets.fromLTRB(50, 10, 50, 10),
    height: 50,
    child: ASButton(pressAction, "Signup"),
),

//BUTTON WITH ACTION AND CUSTOM IMAGE IN YOUR LOCAL PROJECT 
Container(
  width: 50,
  height: 60,
  child:
      ASButtonCustomIcon(pressAction, 'assets/images/home.png'),
),

//BUTTON WITH ACTION AND SYSTEM ICON PROVIDED BY FLUTTER
Container(
  width: 50,
  height: 60,
  child: ASButtonWithSystemIcon(pressAction, Icons.arrow_back_ios),
),
0
likes
70
pub points
0%
popularity

A flutter package ASButton is a delightful library for different type of button i.e with custom image, Ssystem Icon, custom text, background color with corner radius

Homepage

Documentation

API reference

Uploader

ketul@atharvasystem.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on asbutton