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

outdated

A shapeable, layered, intrinsincally animated container Widget that supports blurring ImageFilters, Material InkResponse, and HapticFeedback; and offers a number of parameters for both appearance and behavior.

WIP #

'Surface' Flutter Package #

Animated GIF preview of Surface Example app

Surface is an AnimatedContainer and Material with a number of convenience parameters and customization options, through standard approaches and bespoke shape-crafting.

  • Work in progress transfer from an Android application on which I am primarily focused.

  • A shapeable, layered, intrinsincally animated container Widget that supports blurring ImageFilters, Material InkResponse, and HapticFeedback; and way more.

  • The package currently includes a couple goodies that I use in my project. I would like to incorporate these extra features more tightly with Surface.

  • Color extensions Color.withBlack(int subtract) and Color.withWhite(int add) may be handy at least.

  • A modified SplashFactory called CustomInk is present in goodies.dart as well.

  • This is my first public package and I expect things may still be altered greatly.

TODO: #

  • Intrinsic animations of [Surface.corners] property change.

    • Currently there is a conditional swap where any Surface build method utilizes the Beveled Shape to a RoundedRect Shape.
    • Ideally, I believe, there would be a Decoration.lerp() involved.
    • This "aggravates" the simplicity of [Surface] to develop, but would provide a better end-user result: more accurate and performant animations that are just as easy to use. (Almost effortless? 😉)
  • Differed radius on [innerSurface] when using [SurfaceCorners.ROUND] vs [borderContainer]

    • Smaller inner radius gives a better aesthetic for nested rounded rectangles

WIP #

Surface Example #

See some example usage of the Surface package for Flutter included here.

10
likes
0
pub points
3%
popularity

Publisher

verified publisherzaba.app

A shapeable, layered, intrinsincally animated container Widget that supports blurring ImageFilters, Material InkResponse, and HapticFeedback; and offers a number of parameters for both appearance and behavior.

Homepage

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on surface