v0.1.7simple_speed_dial
一個簡單的 Flutter 速度撥號。您可以使用任意數量的速度撥號選項。您可以在速度撥號選項旁邊使用標籤。每個 fab 的顏色都可以設定。
95喜歡 1330近 30 天下載160Pub 分數
AndroidiOSWebmacOSWindowsLinux
janoschp/simple_speed_dial open-source repository details.
{"sdk":"flutter"}1.0.4以下為英文專案原文快照,最新內容請造訪 GitHub。
A simple speed dial widget for Flutter.
Demonstration:
Demonstration
Usage:
Scaffold(
floatingActionButton: SpeedDial(
child: Icon(Icons.add),
closedForegroundColor: Colors.black,
openForegroundColor: Colors.white,
closedBackgroundColor: Colors.white,
openBackgroundColor: Colors.black,
labelsStyle: /* Your label TextStyle goes here */,
labelsBackgroundColor: Colors.white,
controller: /* Your custom animation controller goes here */,
speedDialChildren: <SpeedDialChild>[
SpeedDialChild(
child: Icon(Icons.directions_run),
foregroundColor: Colors.white,
backgroundColor: Colors.red,
label: 'Let\'s start a run!',
onPressed: () {
setState(() {
_text = 'You pressed \"Let\'s start a run!\"';
});
},
closeSpeedDialOnPressed: false,
),
SpeedDialChild(
child: Icon(Icons.directions_walk),
foregroundColor: Colors.black,
backgroundColor: Colors.yellow,
label: 'Let\'s go for a walk!',
onPressed: () {
setState(() {
_text = 'You pressed \"Let\'s go for a walk!\"';
});
},
),
// Your other SpeedDialChildren go here.
],
),
);