nice_button 0.1.7 copy "nice_button: ^0.1.7" to clipboard
nice_button: ^0.1.7 copied to clipboard

A Flutter package for Android and IOS to design nice buttons with no hassle in your app. Enjoy !

nice_button #

pub package Donate

A Flutter package for Android and IOS to design nice buttons with no hassle in your app. Enjoy !

Installation #

Add the following to pubspec.yaml

dependencies:
  ...
  nice_button: ^0.1.7

Usage Example #

import nice_button.dart

import 'package:nice_button/nice_button.dart';

For normal buttons #

NiceButton(
    width: 255,
    elevation: 8.0,
    radius: 52.0,
    text: "Login",
    background: yourColor,
    onPressed: () {
        print("hello");
        },
    ),

For mini buttons #

Icon is required in this case

NiceButton(
    mini: true,
    icon: Icons.home,
    background: yourColor,
    onPressed: () {
        print("hello");
    },
    )

For gradient buttons #

var firstColor = Color(0xff5b86e5), secondColor = Color(0xff36d1dc);

NiceButton(
    radius: 40,
    padding: const EdgeInsets.all(15),
    text: "Register",
    icon: Icons.account_box,
    gradientColors: [secondColor, firstColor],
    onPressed: () {},
    )

Package demo

Refer to example folder and the source code for more information.

64
likes
40
points
27
downloads

Publisher

verified publisherethieladiassa.me

Weekly Downloads

A Flutter package for Android and IOS to design nice buttons with no hassle in your app. Enjoy !

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on nice_button