Skip to content
pubscout

list_counter

1.0.2, released 4 years ago by matthewwhitaker.me

Utility for generating list markers in many numbering styles

WASM-readySingle maintainer
$ flutter pub add list_counter
Source repository

What it does

Provides a Counter class that tracks a numeric value and a CounterStyle system that can format that value into various list markers (Roman, alphabetic, CJK, etc.). It also allows defining custom styles and managing them via a registry.

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

Use it when

  • You need numbered or bulleted lists in multiple languages or custom numbering schemes
  • You want a pure Dart solution without external dependencies
  • You need to generate list markers for documentation or UI components

Skip it when

  • You require complex layout or styling beyond simple markers
  • You need integration with a UI framework that already provides list widgets

Strengths

  • Wide range of predefined styles covering many languages
  • Supports custom additive and other systems
  • Pure Dart, no native dependencies
  • No build_runner or codegen required

Weaknesses

  • No UI components, only marker generation
  • Limited to list markers, not full list widgets
  • No performance benchmarks for very large lists

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0

Add dependency in pubspec, import package, no special permissions

import 'package:list_counter/list_counter.dart';

void main(){
  final counter=Counter('named_counter');
  final style=PredefinedCounterStyle.upperRoman;
  counter.increment();
  print(style.generateMarkerContent(counter.value)); // I. 
}

Alternatives

Packages that do the same job and could replace list_counter.

  • gtk

    GTK utilities for Flutter Linux applications, providing settings and application lifecycle helpers.

  • flutter_flavorizr

    A utility to easily create and configure application flavors in Flutter.

  • chunked_stream

    Utilities for working with chunked streams such as Stream<List<int>>

Works with

Packages commonly used together with list_counter: ones it builds on, ones built on it, and its own family.