FLUTTER ECOSYSTEM

bizz84/pushable_button

Um botão 3D pressionável feito no Flutter. Ideal para chamadas para ação importantes no aplicativo.

Capa do projeto botão empurrável
Stars
34
Forks
12
Último push (UTC)
14 de ago. de 2024
Status do projeto
Ativo
Andrea Bizzotto GitHub avatar
GITHUB User

Andrea Bizzotto ↗

Flutter GDE ❖ Creator of codewithandrea.com ❖ YouTube: nnbd.me/yt ❖ Complete Dart Course: nnbd.me/dart

https://codewithandrea.comLondonSite oficial ↗
LinguagensDartHTMLSwiftKotlinObjective-C

Tópicos técnicos

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 2 itens
  • flutter{"sdk":"flutter"}
  • flutter_testDesenvolvimento{"sdk":"flutter"}

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher README

Pushable Button

Pub Language License Twitter

A 3D pushable button built in Flutter. Ideal for important CTAs in the app.

PushableButton preview

Usage

PushableButton(
  child: Text('ENROLL NOW', style: someTextStyle),
  height: 60,
  elevation: 8,
  hslColor: HSLColor.fromAHSL(1.0, 120, 1.0, 0.37),
  shadow: BoxShadow(
    color: Colors.grey.withOpacity(0.5),
    spreadRadius: 5,
    blurRadius: 7,
    offset: Offset(0, 2),
  ),
  onPressed: () => print('Button Pressed!'),
)

Configurable Properties

  • child: child widget (normally a Text or Icon)
  • height: height of the top layer
  • elevation: elevation or "gap" between the top and bottom layer
  • hslColor: color of the top layer. HSLColor is used instead of Color so that the bottom layer is automatically calculated by reducing the luminosity
  • shadow: an optional shadow to make the button look better
  • onPressed: button callback
LICENSE: MIT