v0.7.0action_slider
アクションの確認と、その後の読み込み後にそれらの成功に対するフィードバックを提供するスライダー。
アクションの確認と、その後の読み込み後にそれらの成功に関するフィードバックを提供するためのFlutterスライダー。
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
A fully customizable slider to confirm actions and provide feedback on the success. It supports different states like loading, success and failure.
LTR and RTL are both supported.
For a switch with a similar look, you can check out animated_toggle_switch.
ActionSlider.standard() with SliderBehavior.stretch
ActionSlider.dual()
ActionSlider.standard() with TextDirection.rtl
ActionSlider.standard() with SliderIconAnimation.roll
ActionSlider.standard() with SliderBehavior.stretch and SliderIconAnimation.roll
You can build your own sliders with ActionSlider.custom()
Easy to use and highly customizable.
ActionSlider.standard(
child: const Text('Slide to confirm'),
action: (controller) async {
controller.loading(); //starts loading animation
await Future.delayed(const Duration(seconds: 3));
controller.success(); //starts success animation
},
... //many more parameters
)
Two directions with ActionSlider.dual
ActionSlider.dual(
child: const Text('Slide to confirm'),
startAction: (controller) async {
controller.success(expanded: true, side: SliderSide.start); //starts success animation with an expanded slider
},
endAction: (controller) async {
controller.success(); //starts success animation
},
... //many more parameters
)
Maximum customizability with ActionSlider.custom.
ActionSlider.custom(
foregroundBuilder: (context, state, child) => ...,
backgroundBuilder: (context, state, child) => ...,
outerBackgroundBuilder: (context, state, child) => ...,
action: (controller) => ...,
... //many more parameters
)
依存関係一覧 4 件
{"sdk":"flutter"}{"sdk":"flutter"}^4.0.0^8.0.13用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗