non_uniform_border
1.0.2, released 3 days ago by an unverified publisher
Provides a custom ShapeBorder allowing different widths for each side with a single color.
What it does
It introduces a NonUniformBorder class for Flutter that enables different border widths on each side of a widget. It supports features like border radius, symmetrical configurations, and uniform borders.
AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need custom borders with different widths on individual sides.
- You are building custom UI elements requiring non-uniform border styling.
Skip it when
- You only need standard uniform borders provided out-of-the-box by Flutter.
Strengths
- Allows different widths for each side of a border
- Supports border radius and custom alignments
- Provides convenient constructors like symmetrical and all
Weaknesses
- Limited to a single color for the entire border
- Not documented for gradient or multi-color border support
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:non_uniform_border/non_uniform_border.dart';
final shapeBorder = NonUniformBorder(
leftWidth: 4,
rightWidth: 8,
topWidth: 12,
bottomWidth: 16,
color: Color(0xfffbbf24),
);Alternatives
Packages that do the same job and could replace non_uniform_border.
- flutter_switch
A custom switch widget with configurable height, width, colors, borders, text, and toggle icons.
50Compare - flutter_rounded_progress_bar
A customizable rounded progress bar widget for Flutter supporting themes and icons.
43Compare - glowy_borders
A wrapper widget to animate borders and glows around widgets using gradients.
49Compare - custom_cupertino_picker
Customizable Cupertino picker with border and physics options
36Compare