byswitcher 1.0.1

Flutter Android iOS web

A Switch Button for Flutter. Pure Dart Code. Loading State Included. Customize Thumb Image Supported.

BySwitcher #

pub package author

A Switch Button for Flutter.

Feature #

  • 参考Flutter自带Switch实现,增加了“加载中”的状态,适用于开关需要网络请求的场景;
  • 可自定义开关底图(例如:开/关);
  • 可自定义按钮图

Get Started #

Add Dependency #

dependencies:
  byswitcher: ^1.0.1

Usage #

import 'package:byswitcher/byswitcher.dart';

/// Normal Switcher
child: BySwitcher();

/// Has Loading State Default 
child: BySwitcher.loading();
1
likes
110
pub points
4%
popularity

A Switch Button for Flutter. Pure Dart Code. Loading State Included. Customize Thumb Image Supported.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

bluesofy@live.cn

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on byswitcher