AwesomeButton
這是一個具有出色外觀的預建按鈕,適用於 Flutter。
- 星標
- 8
- 分支
- 2
- 最近推送(UTC)
- 2019年8月21日
- 專案狀態
- 未封存
原始 README
以下為英文專案原文快照,最新內容請造訪 GitHub。
AwesomeButton
This is a pre-built button for flutter with an awesome look.
Installation
Add the awesome_button to your dependencies in your pubspec.yaml.
awesome_button: ^1.0.2
Usage
Import the AwesomeButton.dart using this line below.
import 'package:awesome_button/awesome_button.dart';
Add the AwesomeButton widget to your widget tree and provide your parameter to it, like examples below.
Example
AwesomeButton(
blurRadius: 10.0,
splashColor: Color.fromRGBO(255, 255, 255, .4),
borderRadius: BorderRadius.circular(37.5),
height: 75.0,
width: 200.0,
onTap: () => print("tapped"),
color: Colors.redAccent,
child: Text(
"Awesome Button",
style: TextStyle(
color: Colors.white,
fontSize: 20.0,
),
),
),
AwesomeButton(
blurRadius: 10.0,
splashColor: Color.fromRGBO(255, 255, 255, .4),
borderRadius: BorderRadius.circular(50.0),
height: 100.0,
width: 100.0,
onTap: () => print("tapped"),
color: Colors.greenAccent,
child: Icon(
Icons.account_circle,
color: Colors.white,
size: 50.0,
),
),
AwesomeButton(
blurRadius: 10.0,
splashColor: Color.fromRGBO(255, 255, 255, .4),
borderRadius: BorderRadius.circular(25.0),
height: 75.0,
width: 200.0,
onTap: () => print("tapped"),
color: Colors.orangeAccent,
child: Text(
"Awesome Button",
style: TextStyle(
color: Colors.white,
fontSize: 20.0,
),
),
),
語言Dart
如何選擇適合專案的儲存庫?
先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
- 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
- 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
- 使用前在 GitHub 確認 README、授權條款與 Issues。
來源與維護
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗


