asbutton 0.0.2 copy "asbutton: ^0.0.2" to clipboard
asbutton: ^0.0.2 copied to clipboard

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 #

//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
20
pub points
0%
popularity

Publisher

verified publisheratharvasystem.com

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

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on asbutton