v0.0.2rolling_switch
魅力的なアニメーション付きのカスタムスイッチボタン。色、アイコン、その他の装飾的なコンテンツをカスタマイズできます。
59いいね 30530日間ダウンロード150Pub ポイント
AndroidiOSWebmacOSWindowsLinux
Flutterアプリ用の完全にカスタマイズ可能なローリングスイッチウィジェット
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

Full customizable rolling switch widget for flutter apps forked from this library
Custom Switch button with attractive animation,
made to allow you to customize colors, icons, custom widget and other cosmetic content.
Manage the widget states in the same way you do with the classical material's switch widget.
Import this library into your project:
roling_switch: ^latest_version
RollingSwitch.icon(
onChanged: (bool state) {
print('turned ${(state) ? 'on' : 'off'}');
},
rollingInfoRight: const RollingIconInfo(
icon: Icons.flag,
text: Text('Flag'),
),
rollingInfoLeft: const RollingIconInfo(
icon: Icons.check,
backgroundColor: Colors.grey,
text: Text('Check'),
),
),
const RollingWidgetInfo(icon: FlutterLogo())
RollingSwitch.icon(
rollingInfoRight: const RollingIconInfo(
backgroundColor: Colors.green,
),
rollingInfoLeft: const RollingIconInfo(
backgroundColor: Colors.grey,
),
)
RollingSwitch.icon(
...
circularColor: (icon: FlutterLogo())
)
RollingSwitch.icon(
rollingInfoRight: const RollingIconInfo(
text: Text('Flag'),
),
rollingInfoLeft: const RollingIconInfo(
text: Text('Stack'),
),
)
RollingSwitch.icon(
...
enableDrag: true
)
依存関係一覧 4 件
{"sdk":"flutter"}^0.0.1{"sdk":"flutter"}^1.5.3用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗