Flutter Numeral System Both in International and Indian/ Hindu-Arabic System

This plugin helps you to display number as per International or Indian Numeral System. Internation Numeral System means the system that counts number in the form of ONES, TENS, HUNDREDS, THOUSANDS, TEN THOUSANDS, HUNDRED THOUSANDS, MILLION, etc. Indian or Hindu-Arabic System means the system that counts number in the form of ONES, TENS, HUNDREDS, THOUSANDS, TEN THOUSANDS, LAKH , TEN LAKH, CRORE, etc.

Table of contents

Features

  • You can use any of the numeral system.
  • You can add textstyle.
  • You can chose the numbers of digit to be displayed after decimal.

Installation

Add package to the the pubspec.yaml.

numeral_system:

Import the package.

import 'package:numeral_system/numeral_system.dart';

Add NumeralSystem to the widget tree

Scaffold(
    body: Center(
        child:
            //By Default i.e INTERNATIONAL
            NumeralSystem(digit: 934023),
        )
    )

For Indian System

NumeralSystem(
    numberSystem: NumberSystem.indian,
    digit: 987387659876,
    afterDecimalDigits: 5,
    ),

For 4 digits after decimal

NumeralSystem(
    digit: 195659876,
    numberSystem: NumberSystem.indian,
    afterDecimalDigits: 4,
    ),

For adding textstyle

NumeralSystem(
    digit: 198765987,
    textStyle: TextStyle(
        fontSize: 20,
        fontWeight: FontWeight.bold,
        color: Colors.red)
    ),

Support and feedback

If I miss to add some feature, feel free to open a ticket or contribute! You can reach me here: LinkedIn GitHub Medium Google DevLibrary

Libraries

numeral_system