scratch_view 0.0.3 copy "scratch_view: ^0.0.3" to clipboard
scratch_view: ^0.0.3 copied to clipboard

Scratch Cards

Feature

Scratch card component, supports foreground and background layers as any component, supports clicking to scratch the specified area, supports scratching all at once

功能

刮刮卡组件,支持前景和背景层为任意组件,支持点击刮开指定区域,支持一次性刮开全部

Preview

预览

How to use

如何使用

SizedBox(
  width: width,
  height: height,
  child: ScratchView(
    cover: Foreground(),
    behind: Background(),
  ),
)

clicking to scratch the specified area

点击刮开指定区域

SizedBox(
  width: width,
  height: height,
  child: ScratchRevealRectButtonView(
    child: SomeTapped(),
  ),
)
0
likes
105
points
14
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Scratch Cards

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, pointer_tap_simulator

More

Packages that depend on scratch_view