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.