Skip to content
pubscout

segment_display

0.6.0, released 7 months ago by stol.dev

Segment display widget for Flutter supporting 7, 14, and 16 segment displays with customizable styles

WASM-ready
$ flutter pub add segment_display
Source repository

What it does

Provides widgets to render numeric and alphanumeric characters using segment displays. Supports custom segment shapes, colors, spacing, and decimal/colon characters.

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

Use it when

  • You need a digital clock or numeric display with classic segment look
  • You want to customize segment colors or shapes
  • You need support for 7, 14, or 16 segment displays in a Flutter app

Skip it when

  • You require a fully animated or physics-based segment animation
  • You need a high-performance, low-level rendering of segments for very large numbers

Strengths

  • Easy to use declarative API
  • Supports multiple segment types and custom styles
  • Always-visible disabled dividers and custom character maps
  • Compatible with all Flutter platforms

Weaknesses

  • No built-in animation support
  • Limited to segment display shapes, not arbitrary graphics
  • No integration with state management or theming beyond basic colors

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Add dependency, import package, use widget

SevenSegmentDisplay(
  value: "123",
  size: 12.0,
  characterSpacing: 10.0,
  backgroundColor: Colors.transparent,
  segmentStyle: HexSegmentStyle(
    enabledColor: Colors.red,
    disabledColor: Colors.red.withOpacity(0.15),
  ),
)

Alternatives

Packages that do the same job and could replace segment_display.