v0.1.7simple_speed_dial
Flutter용 간단한 스피드 다이얼입니다. 원하는 만큼 스피드 다이얼 옵션을 사용할 수 있습니다. 스피드 다이얼 옵션 옆에 레이블을 사용할 수 있습니다. 각 FAB의 색상을 설정할 수 있습니다.
95좋아요 1.3천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.
],
),
);