Skip to content
pubscout

gradient_borders

1.0.4, released 6 months ago by thecodebrothers.pl

Gradient borders for Flutter inputs and containers

WASM-ready
$ flutter pub add gradient_borders
Source repository

What it does

Provides border classes that use gradients instead of solid colors for containers and text field input decorations. Supports custom widths, border radius, stroke alignment, and box shapes.

AI-written summary of version 1.0.4, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need custom gradient box borders on containers
  • You want gradient outlines or underlines for input decorations

Skip it when

  • You only need standard solid-colored borders
  • You are not using Flutter

Strengths

  • Easy to use with standard Flutter widgets
  • Supports both container box borders and text field input borders
  • Platform independent

Weaknesses

  • Limited to border styling functionality

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
Container(
  width: 100,
  height: 100,
  decoration: BoxDecoration(
    border: const GradientBoxBorder(
      gradient: LinearGradient(colors: [Colors.blue, Colors.red]),
      width: 4,
    ),
    borderRadius: BorderRadius.circular(16)
  ),
)

Alternatives

Packages that do the same job and could replace gradient_borders.

Works with

Packages commonly used together with gradient_borders: ones it builds on, ones built on it, and its own family.