Skip to main content

digital_lcd_number 0.2.0 copy "digital_lcd_number: ^0.2.0" to clipboard
digital_lcd_number: ^0.2.0 copied to clipboard

Seven-segment style LCD digits for Flutter, with colon and decimal point widgets for clocks and timers. Auto-sizing and design-system independent.

An automatic sizer digital single-digit number with LCD style widget.

Screenshot 2022-07-05 at 21 59 40

Features #

This package (or widget) can be used across any platform as it is platform independent

  • Customize the colors of the widget
  • Design-system independent: depends only on Flutter's widgets layer (works with material_ui, cupertino_ui or neither)
  • Colon and decimal-point widgets for clocks and decimals

Setup #

There is no special setup required, just add the dependency in pubspec.yaml, import the file, and you are good to go..

Add the dependency in pubspec.yaml

digital_lcd_number: ^0.2.0 # Note: use latest version

Import the widget into dart file

import 'package:digital_lcd_number/digital_lcd_number.dart';

Usage #

// default usage (color defaults to the ambient text color)
DigitalLcdNumber(number: 0),

Clock with colon and decimal point (all parts must share the same height):

SizedBox(
  height: 120,
  child: Row(
    mainAxisSize: MainAxisSize.min,
    children: [
      DigitalLcdNumber(number: 1, color: Colors.red),
      DigitalLcdNumber(number: 2, color: Colors.red),
      DigitalLcdColon(color: Colors.red), // dim with active: false to blink
      DigitalLcdNumber(number: 3, color: Colors.red),
      DigitalLcdNumber(number: 4, color: Colors.red),
      DigitalLcdDot(color: Colors.red),
      DigitalLcdNumber(number: 5, color: Colors.red),
    ],
  ),
),

You can find more usage details in the /example.

Additional information #

This package is licensed under BSD 3-Clause License

14
likes
160
points
406
downloads
screenshot

Documentation

API reference

Publisher

verified publisherimmadisairaj.dev

Weekly Downloads

Seven-segment style LCD digits for Flutter, with colon and decimal point widgets for clocks and timers. Auto-sizing and design-system independent.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on digital_lcd_number