FLUTTER ECOSYSTEM

rijfas/flat_3d_button

一個簡單的3D平面按鈕,帶有點擊動畫!

flat_3d_button 專案封面
Stars
11
Forks
2
最近推送(UTC)
2022年7月11日
專案狀態
未封存
rijfas GitHub avatar
GITHUB User

rijfas ↗

undefined

Williams LeaKerala, India
語言C++CMakeDartHTMLCSwiftKotlinObjective-C

技術主題

此儲存庫發佈的套件

使用的依賴

依賴清單 3 項
  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}
  • flutter_lints開發依賴^2.0.0

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

🔮 Flat 3d Button

pub package

https://github.com/rijfas/flat_3d_button/raw/main/images/banner.png

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:

https://github.com/rijfas/flat_3d_button/raw/main/images/flat_3d_button_counter.GIF


  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:

https://github.com/rijfas/flat_3d_button/raw/main/images/flat_3d_button_text.GIF


Flat3dButton.text(
  onPressed: () => print('clicked'),
  text: 'Flat',
);
3. Flat 3D button with icon:

https://github.com/rijfas/flat_3d_button/raw/main/images/flat_3d_button_icon.GIF


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

🔧 Author

https://avatars.githubusercontent.com/u/67458012?s=40&v=4

📃 License

MIT License