Search packages, repositories and app categories

GitHub repositoryEthiel97/nice_button

nice_button

Ethiel97/nice_button open-source repository details.

nice_button project cover
Stars
28
Forks
7
Last push (UTC)
Oct 11, 2021
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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.

Ethiel ADIASSA GitHub avatar
GitHub author

Ethiel ADIASSA ↗

Problem solver - Software Engineer

AutonationCanadaOfficial website ↗
LanguagesDartObjective-CJava

Packages published by this repository

Dependencies used

Dependency list 2 items

  • flutter{"sdk":"flutter"}
  • flutter_testDevelopment{"sdk":"flutter"}

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗