gradient_borders
1.0.4, released 6 months ago by thecodebrothers.pl
Gradient borders for Flutter inputs and containers
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.
- glassmorphism
Create glassmorphic frosted glass containers with backdrop blur and gradient borders.
77Compare - icon_decoration
Provides a DecoratedIcon widget to add borders and gradients to icons.
50Compare - dotted_decoration
DottedDecoration widget for drawing dotted borders, lines, circles, and ovals.
72Compare - flutter_shaders_ui
Ready-to-use Flutter widgets powered by GLSL fragment shaders.
72Compare
Works with
Packages commonly used together with gradient_borders: ones it builds on, ones built on it, and its own family.