amazing_button 0.0.3+1 copy "amazing_button: ^0.0.3+1" to clipboard
amazing_button: ^0.0.3+1 copied to clipboard

outdated

A new Flutter buttons package project. You can get easily a pre-build buttons and can customize it.

amazing_button #

pub package

A new Flutter package project for createing Buttons.

Example #

Here is a small example flutter app displaying a button.

import 'package:amazing_button/amazing_button.dart';
import 'package:flutter/material.dart';

class AmazingButtonDemo extends StatelessWidget {
  const AmazingButtonDemo({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("AmazingButtonDemo"),
      ),
      body: Center(
        child: Column(
          children: <Widget>[
            //This is a default button (primary button)
            AmazingButton(
              onPressed: (){},
            ),
            //You can get secondery, success, danger, warning, info, light, dark, dark, link type button
            AmazingButton.secondery(onPressed: (){}),
            AmazingButton.success(onPressed: (){}),
            AmazingButton.danger(onPressed: (){}),
            AmazingButton.warning(onPressed: (){}),
            AmazingButton.info(onPressed: (){}),
            AmazingButton.light(onPressed: (){}),
            AmazingButton.dark(onPressed: (){}),
            AmazingButton.link(onPressed: (){})
          ],
        ),
      ),
    );
  }
}

You can customize the buttons as you wish.

AmazingButton(
    onPressed: (){},
    onLongPress: (){},
    text: "Button",
    color: Colors.green,
    fontSize: 30,
    backgroundColor: Colors.red,
    borderRadius: BorderRadius.all(Radius.circular(10)),
    padding: EdgeInsets.all(20),
    borderSideColor: Colors.red,
    elevation: 5,
    height: 100,
    width: 300,
),
AmazingButton.warning(
    onPressed: (){},
    onLongPress: (){},
    text: "Button",
    color: Colors.green,
    fontSize: 30,
    backgroundColor: Colors.red,
    borderRadius: BorderRadius.all(Radius.circular(10)),
    padding: EdgeInsets.all(20),
    borderSideColor: Colors.red,
    elevation: 5,
    height: 100,
    width: 300,
),
5
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A new Flutter buttons package project. You can get easily a pre-build buttons and can customize it.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on amazing_button