surface library

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

Options to render an InkResponse, blurry ImageFilters in preconfigured SurfaceFilter arrangements, a HapticFeedback shortcut, and support for Colors and Gradients in container and border.

Border is configurable by supplying Surface.corners and radius, as well as giving special treatment, generally a thicker appearance, to selected side(s) by passing Surface.borderAlignment and tuning with Surface.borderRatio.

biBeveledShape is responsible for the SurfaceCorners.BEVEL custom shape.

surface.dart adds a few items to namespace currently... sorry!

  • fullPrint(String text) to receive really long Strings in console log
  • Color extensions .withBlack(int subtract) and .withWhite(int add)
  • CustomInk.splashFactory - New InteractiveInkFeatureFactory from modified Material.InkRipple
  • Transform ScaleAxis(Widget child, {Key key, double dx =1.0, double dy =1.0, Offset origin, AlignmentGeometry alignment})

Classes

CustomInk
🖋👆 A delightfully bouncy and position-mirroring reaction to user input on a piece of Material. [...]
DragNub
DragNub is a small, round "handle" indicator [...]
Surface
📦 Surface [...]

Extensions

WithShading
⬛⬜ Color Extension WithShading [...]

Functions

biBeveledShape({bool flip = false, double radius = 5, bool shrinkOneCorner = false, double ratio = 5 / 4, AlignmentGeometry shrinkCornerAlignment}) BeveledRectangleBorder
🔰 biBeveledShape [...]
blurry(double radius) ImageFilter
🔬 blurry Image Filter [...]
fullPrint(String text) → void
👨‍💻 Full Print [...]
scaleAxis({double dx = 1.0, double dy = 1.0, Offset origin = const Offset(0, 0), AlignmentGeometry alignment = Alignment.center, Widget child}) Transform
📏 Scale Axis: [...]

Enums

SurfaceCorners
📐 SurfaceCorners [...]
SurfaceFilter
👓 SurfaceFilter [...]
SurfaceLayer
📇 SurfaceLayer [...]
SurfacePadding
🔲 SurfacePadding [...]