v2.0.0bubble_lens
Flutter 可自訂的 Apple Watch UI 動畫重現
101喜歡 2290近 30 天下載155Pub 分數
AndroidiOSWebmacOSWindowsLinux
nbrucker/bubble_lens open-source repository details.
以下為英文專案原文快照,最新內容請造訪 GitHub。
A reproduction of the Apple Watch UI animation
import 'package:bubble_lens/bubble_lens.dart';
BubbleLens(
width: 250,
height: 250,
widgets: [
Container(
width: 100,
height: 100,
color: Colors.red
),
...
]
);
| Prop | Type | Default | Description |
|---|---|---|---|
| width | double | N/A | Width of the container. |
| height | double | N/A | Height of the container. |
| widgets | List | N/A | List of widgets to display. |
| Prop | Type | Default | Description |
|---|---|---|---|
| size | double | 100 | Maximum size of a widget. |
| paddingX | double | 10 | Horizontal padding between widgets. |
| paddingY | double | 0 | Vertical padding between widgets. |
| duration | Duration | Duration(milliseconds: 100) | Animation's duration. |
| radius | Radius | Radius.circular(999) | Widget's radius. |
| highRatio | double | 0 | High ratio, should be >= 0. |
| lowRatio | double | 0 | Low ratio, should be >= 0. |
Find the example wiring in the Bubble Lens example application.
See the bubble_lens.dart for more details.
Please file issues to send feedback or report a bug. Thank you!
依賴清單 1 項
{"sdk":"flutter"}先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗