flutter_switch_clipper 0.0.1 copy "flutter_switch_clipper: ^0.0.1" to clipboard
flutter_switch_clipper: ^0.0.1 copied to clipboard

outdated

A Flutter package that two widgets switch with clipper.

flutter_switch_clipper #

A Flutter package that two widgets switch with clipper.

1.使用 #

SwitchCipper(
    initSelect: true,
    child: const Icon(Icons.favorite, size: 200, color: Colors.redAccent),
    background: const Icon(Icons.favorite, size: 200, color: Colors.white),
    fillAlignment: _alignment,
    fillOffset: 50,
    duration: const Duration(milliseconds: 800),
    onSelect: (bool r) {
        print(r);
    },
),
SwitchCipper(
    child: const Text(
        'FlutterCandies',
        style: TextStyle(
            fontWeight: FontWeight.bold,
            fontSize: 50,
            color: Colors.amber,
            height: 2,
        ),
    ),
    background: const Text(
        'FlutterCandies',
        style: TextStyle(
            fontWeight: FontWeight.bold,
            fontSize: 50,
            color: Colors.white,
            height: 2,
        ),
    ),
    fillAlignment: _alignment,
    curve: Curves.slowMiddle,
    reverseCurve: Curves.linear,
    fillOffset: 10,
),

体验一下 #

体验网址:https://sc.liugl.cn

50
likes
0
pub points
60%
popularity

Publisher

verified publisherfluttercandies.com

A Flutter package that two widgets switch with clipper.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_switch_clipper