FLUTTER ECOSYSTEM

tiagosito/switcher

아름답고 개인화된 스위처 컴포넌트

스위처 프로젝트 이미지
Stars
2
Forks
1
최근 푸시(UTC)
2024. 8. 2.
프로젝트 상태
활성
Tiagosito GitHub avatar
GITHUB User

Tiagosito ↗

Mobile Software Engineer at banco BV | 200DEV | Co-organizer at Flutterando https://flutterando.com.br/

banco BVHortolândia, São Paulo, Brasil공식 웹사이트 ↗
언어DartHTMLObjective-CJavaSwiftKotlin

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 2 개
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기
logo

A animated, beautiful and personalized switcher component.

Based on Eduardo Muñoz's widget lite_rolling_switch

 

Pub Package Buy Me A Coffee

Overview

A animated and beautiful Switcher

Contributing
Getting Started

In pubspec.yaml:

dependencies:
  switcher: any
See how:
Using switcher Using switcher Using switcher Using switcher Using switcher Using switcher Using switcher Using switcher
import 'package:switcher/switcher.dart';

Switcher(
    value: false,
    size: SwitcherSize.large,
    switcherButtonRadius: 50,
    enabledSwitcherButtonRotate: true,
    iconOff: Icons.lock,
    iconOn: Icons.lock_open,
    colorOff: Colors.blueGrey.withOpacity(0.3),
    colorOn: Colors.blue,
    onChanged: (bool state) {
    //
    },
),

 Switcher(
    value: false,
    size: SwitcherSize.large,
    switcherButtonRadius: 50,
    iconOff: null,
    enabledSwitcherButtonRotate: false,
    colorOff: Colors.blueGrey.withOpacity(0.3),
    colorOn: Colors.blue,
    onChanged: (bool state) {
    //
    },
),

Features and bugs

Please send feature requests and bugs at the issue tracker.