v1.0.1lite_rolling_switch
아름답고 매력적인 애니메이션을 갖춘 사용자 지정 스위치 버튼으로 색상, 아이콘 및 기타 미적 콘텐츠를 사용자 정의할 수 있습니다. 이제 null 안전성을 지원합니다.
Pedro Massango의 'crazy-switch' 위젯을 기반으로 한 플러터 앱용 완전히 사용자 정의 가능한 롤링 스위치 위젯 https://github.com/pedromassango/crazy-switch
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Full customable rolling switch widget for flutter apps based on Pedro Massango's 'crazy-switch' widget https://github.com/pedromassango/crazy-switch
Custom Switch button with attractive animation, made to allow you to customize colors, icons and other cosmetic content. Manage the widget states in the same way you do with the classical material's switch widget.
NOTE: Currently, you cannot directly change the widget height properties. This feature will be available soon.
import 'package:lite_rolling_switch/lite_rolling_switch.dart';
LiteRollingSwitch(
//initial value
value: true,
textOn: 'disponible',
textOff: 'ocupado',
colorOn: Colors.greenAccent[700],
colorOff: Colors.redAccent[700],
iconOn: Icons.done,
iconOff: Icons.remove_circle_outline,
textSize: 16.0,
onChanged: (bool state) {
//Use it to manage the different states
print('Current State of SWITCH IS: $state');
},
),
To executed included unit tests run flutter test. Feel free to Pull Request your own Unit Test to improve this package!
Visit the complete changelog here.
This project has been published under an MIT license, you can consult the license terms in detail here.
의존성 목록 3 개
{"sdk":"flutter"}^0.18.0{"sdk":"flutter"}사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗