Skip to content
pubscout

mobkit_dashed_border

0.0.8, released 2 years ago by biscozum.com.tr

Custom border implementation for dashed lines and curves in Flutter.

WASM-ready
$ flutter pub add mobkit_dashed_border
Source repository

What it does

Provides a custom border implementation for rendering dashed lines, curves, and corner-only borders in Flutter widgets. Supports different colors, widths, and border radii per side.

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

Use it when

  • You need containers or widgets with dashed borders.
  • You want to customize dash length, spacing, and corner styling.

Skip it when

  • You only need standard solid borders provided by Flutter's default BoxBorder.

Strengths

  • Supports rounded corners with dashed borders
  • Allows different colors and widths per side
  • Supports drawing borders only on corners

Weaknesses

  • Limited documentation outside of basic usage samples

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
Container(
    height: 75,
    decoration: const BoxDecoration(
        border:
            DashedBorder.fromBorderSide(dashLength: 10, side: BorderSide(color: Colors.black, width: 1),
        ),
    ),
    child: const Center(
        child: Text(
            'Same color and width',
        ),
    ),
)

Alternatives

Packages that do the same job and could replace mobkit_dashed_border.

  • styled_divider

    Drop-in replacements for Flutter's Divider and VerticalDivider supporting multiple line styles.

  • dotted_line

    A Flutter widget to draw customizable dotted lines.

  • dotted_decoration

    DottedDecoration widget for drawing dotted borders, lines, circles, and ovals.

  • ticketcher

    Create ticket-style cards, boarding passes, and coupons with custom notches, borders, and dividers.