v0.1.7
nice_button
一个适用于 Android 和 IOS 的 Flutter 包,可轻松为您的应用设计美观的按钮。尽情享受吧!
63喜欢 81近 30 天下载40Pub 分数
平台暂无数据
Ethiel97/nice_button open-source repository details.
以下为英文项目原文快照,最新内容请访问 GitHub。
A Flutter package for Android and IOS to design nice buttons with no hassle in your app. Enjoy !
Add the following to pubspec.yaml
dependencies:
...
nice_button: ^0.1.7
import nice_button.dart
import 'package:nice_button/nice_button.dart';
NiceButton(
width: 255,
elevation: 8.0,
radius: 52.0,
text: "Login",
background: yourColor,
onPressed: () {
print("hello");
},
),
Icon is required in this case
NiceButton(
mini: true,
icon: Icons.home,
background: yourColor,
onPressed: () {
print("hello");
},
)
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: () {},
)

Refer to example folder and the source code for more information.
依赖清单 2 项
{"sdk":"flutter"}{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗