Search packages, repositories and app categories

Package detailsv1.0.6

styled_divider

Divider widget with different line styles.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
52.3K
Likes
10
Pub points
160

Install package

flutter pub add styled_divider

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Styled Divider is a Flutter package that extends the standard Divider widget with customizable line styles, enabling developers to create visually distinct separators with options for dashed, dotted, or custom stroke patterns. It supports various line thicknesses, colors, and alignment settings, making it ideal for enhancing UI design consistency across platforms. The package integrates seamlessly into Flutter apps and works across Android, iOS, Web, macOS, Windows, and Linux. It’s particularly useful for improving the aesthetic quality of lists, forms, and section dividers in user interfaces.

Use cases

  • Customizing section separators in lists
  • Enhancing form layouts with styled dividers
  • Creating visual hierarchy in UIs
  • Designing responsive layouts across platforms
  • Adding decorative elements in dashboards
  • Improving app aesthetics with unique line styles

Key features

  • Supports dashed and dotted line styles
  • Configurable line thickness and color
  • Flexible alignment options
  • Cross-platform compatibility
  • Easy integration with existing Flutter code
  • Extends the standard Divider widget

Suitable for

  • UI designers seeking visual variety
  • Developers building responsive apps
  • Teams focusing on polished UI details
  • Apps requiring consistent divider styling
  • Flutter beginners learning widget customization
  • Projects with multi-platform deployment

Considerations

  • Limited to line-style customization only
  • Does not support complex path shapes
  • Requires manual handling of spacing in dense layouts
  • May increase bundle size slightly
  • Not suitable for non-linear divider designs
  • Depends on external source code for updates

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

styled_divider

Divider widget with different line styles.

Getting Started

Use StyledDivider and StyledVerticalDivider widget.

final divider = StyledDivider(
                  color: Colors.green,
                  height: 50,
                  thickness: 2,
                  lineStyle: DividerLineStyle.dotted,
                  indent: 20,
                  endIndent: 20,
                  );

final verticalDivider = StyledVerticalDivider(
                          color: Colors.green,
                          height: 50,
                          thickness: 2,
                          lineStyle: DividerLineStyle.dotted,
                          indent: 20,
                          endIndent: 20,
                          );

The interface is exactly like the built-in Divider (and VerticalDivider) widget except for the lineStyle parameter.

Currently, only four line styles are supported:

  • DividerLineStyle.solid
  • DividerLineStyle.dotted
  • DividerLineStyle.dashed
  • DividerLineStyle.dashdotted

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.