YukiMaitani / flat_3d_button

A simple 3D flat button with click animation!

Home Page:https://pub.dev/packages/flat_3d_button

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐Ÿ”ฎ Flat 3d Button

pub package

A simple 3D flat button with click animation!

๐Ÿ”ฉ Installation

dependencies:
  flat_3d_button: ^1.0.3

๐Ÿšš Import

import 'package:flat_3d_button/flat_3d_button.dart';

๐Ÿš€ Usage Examples

1. Counter app using flat 3D buttons:


  Flat3dButton.icon(
    color: Colors.red,
    onPressed: _decrementCounter,
    icon: Icons.remove,
  ),
  const SizedBox(width: 10),
  Flat3dButton.text(
    onPressed: _resetCounter,
    text: 'reset',
  ),
  const SizedBox(width: 10),
  Flat3dButton.icon(
    color: Colors.green,
    onPressed: _incrementCounter,
    icon: Icons.add,
  ),

refer to the main.dart in the example for complete source code.

2. Flat 3D button with text:


Flat3dButton.text(
  onPressed: () => print('clicked'),
  text: 'Flat',
);

3. Flat 3D button with icon:


Flat3dButton.icon(
  onPressed: () => print('clicked'),
  icon: Icons.rocket,
);

๐Ÿ”ง Author


๐Ÿ“ƒ License

MIT License

About

A simple 3D flat button with click animation!

https://pub.dev/packages/flat_3d_button

License:MIT License


Languages

Language:C++ 39.9%Language:CMake 34.6%Language:Dart 16.8%Language:HTML 3.5%Language:C 2.7%Language:Swift 2.2%Language:Kotlin 0.3%Language:Objective-C 0.1%