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 ↗