Skip to content
pubscout

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.

WASM-ready
$ flutter pub add non_uniform_border
Source repository

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.