Skip to content
pubscout

wx_divider

1.0.0, released 3 years ago by widgetarian.com

A configurable divider widget with support for patterns, gradients, and embedded children.

WASM-ready
$ flutter pub add wx_divider
Source repository

What it does

Displays a horizontal or vertical divider widget with customizable styles, line patterns (solid, dashed, dotted, morse, or custom arrays), colors, gradients, multiple lines, indentation, and an optional child widget with alignment.

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

Use it when

  • You need a customized divider with dashed, dotted, or morse patterns.
  • You want to place text or a widget directly inside a divider line.
  • You need multi-line dividers with custom spacing and gradients.

Skip it when

  • You only need the standard Material Divider widget provided by Flutter out-of-the-box.

Strengths

  • Supports multiple patterns including dashed, dotted, and morse code.
  • Allows embedding a child widget with alignment options.
  • Supports gradients, multiple lines, and custom paint callbacks.

Weaknesses

  • Limited to divider UI patterns.
  • Does not include layout systems or comprehensive UI kits.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
WxDivider(
  direction: Axis.horizontal,
  pattern: WxDivider.dashed,
  color: Colors.grey,
  thickness: 2.0,
  lines: 2,
  spacing: 5.0,
  child: Text('My Text'),
  align: WxDividerAlign.center,
)

Alternatives

Packages that do the same job and could replace wx_divider.

  • ticketcher

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

  • widget_tooltip

    A customizable tooltip widget for Flutter with multiple trigger modes and smart positioning

  • circular_widgets

    Display widgets in a circle with customizable radius and spacing.

  • aron_gradient_line

    A Flutter widget that displays an animated gradient line, useful as a divider in AppBar or other UI parts.