contour_gradient 1.0.1
contour_gradient: ^1.0.1 copied to clipboard
A ShapeBorder and InputBorder that paint a gradient along the length of any OutlinedBorder shape, for containers, buttons, cards, chips and text fields.
1.0.1 #
- Fixed a
BeveledRectangleBordershape's border being twice as wide as its side, as Flutter's ownBeveledRectangleBorderpaints it. It is now as wide as its side everywhere, on the bevels too.
1.0.0 #
Initial release.
ContourGradientBorder: anOutlinedBorderthat paints a gradient along the length of anyOutlinedBordershape. Supportsstops, hard stops, andstartOffsetfor moving the gradient along the border. On closed borders the gradient wraps around and evenly spaced colors each get the same share of the border.- A
LinearBordershape runs the gradient along only the edges it draws, so an underline shows the whole gradient from left to right. Unlike Flutter's ownLinearBorder, its edges are painted in the right place when the box does not start at the origin, as in aContainer, and without a faint line where two edges meet. ContourGradientInputBorder: the same forInputDecoration, with a gap for floating labels likeOutlineInputBorder.- Both borders interpolate, so they work with implicit animations, and animate
to and from plain
OutlinedBorders andOutlineInputBorders.