contour_gradient 1.0.0 copy "contour_gradient: ^1.0.0" to clipboard
contour_gradient: ^1.0.0 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.0 #

Initial release.

  • ContourGradientBorder: an OutlinedBorder that paints a gradient along the length of any OutlinedBorder shape. Supports stops, hard stops, and startOffset for 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 LinearBorder shape runs the gradient along only the edges it draws, so an underline shows the whole gradient from left to right. Unlike Flutter's own LinearBorder, its edges are painted in the right place when the box does not start at the origin, as in a Container, and without a faint line where two edges meet.
  • ContourGradientInputBorder: the same for InputDecoration, with a gap for floating labels like OutlineInputBorder.
  • Both borders interpolate, so they work with implicit animations, and animate to and from plain OutlinedBorders and OutlineInputBorders.
2
likes
0
points
98
downloads

Publisher

verified publisherbszarlej.de

Weekly Downloads

A ShapeBorder and InputBorder that paint a gradient along the length of any OutlinedBorder shape, for containers, buttons, cards, chips and text fields.

Repository (GitHub)
View/report issues

Topics

#gradient #border #ui #animation

License

unknown (license)

Dependencies

flutter

More

Packages that depend on contour_gradient