tornpaper 0.0.2 copy "tornpaper: ^0.0.2" to clipboard
tornpaper: ^0.0.2 copied to clipboard

A Flutter Container that looks like a (maybe torn) paper

tornpaper #

A Flutter Container that looks like a (maybe torn) paper

Usage #

TornPaper(
                key: UniqueKey(),
                backgroundColor: backgroundColor,
                hasNoise: hasNoise,
                noiseColor: noiseColor,
                hasBorder: hasBorder,
                tornWidth: tornWidth,
                tornColor: tornColor,
                tornDeepness: tornDeepness,
                seed: seedValue.toInt(),
                stepWidth: stepWidth,
                hasShadow: hasShadow,
                shadowColor: shadowColor,
                shadowOffset: Offset(shadowOffsetBottom.toDouble(), shadowOffsetRight.toDouble()),
                tornedSides: [
                  if (tornedTop) TornedSide.top,
                  if (tornedRight) TornedSide.right,
                  if (tornedLeft) TornedSide.left,
                  if (tornedBottom) TornedSide.bottom
                ],
                child: [...child...]
          )

Most of the variables are self explaining but some are not:

These parameters are changing the "torn"

  • seed
  • tornwidth
  • tornDeepness
  • stepWidth

The seed is the Random(seed) for the randomness.

Torn Explanation

Try all settings on the GithubPage: https://synchronisator.github.io/tornpaper/

TODO #

Next Level: #

  • Tests :D
  • Knüll-Optik
  • Weiße Abrisskante
  • "Umschlageeffekt"
2
likes
130
pub points
54%
popularity

Publisher

verified publishersynchrondev.de

A Flutter Container that looks like a (maybe torn) paper

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

fast_noise, flutter

More

Packages that depend on tornpaper