tornpaper 0.0.2 icon indicating copy to clipboard operation
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"
0
likes
120
pub points
5%
popularity

Publisher

verified publisher iconsynchrondev.de

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

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

Dependencies

fast_noise, flutter

More

Packages that depend on tornpaper