v0.0.4pushable_button
一個3D可按壓按鈕。適用於應用中的重要行動呼籲。
50喜歡 94近 30 天下載155Pub 分數
AndroidiOSWebmacOSWindowsLinux
一個用 Flutter 建構的 3D 可按壓按鈕。適用於應用中重要的行動呼籲。
{"sdk":"flutter"}{"sdk":"flutter"}以下為英文專案原文快照,最新內容請造訪 GitHub。
A 3D pushable button built in Flutter. Ideal for important CTAs in the app.
PushableButton preview
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!'),
)
Text or Icon)HSLColor is used instead of Color so that the bottom layer is automatically calculated by reducing the luminosity