number_extension 0.0.4 copy "number_extension: ^0.0.4" to clipboard
number_extension: ^0.0.4 copied to clipboard

A package to remove large numeric values from the value and add numeric extension to it.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:number_extension/number_extension.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: Scaffold(
          appBar: AppBar(
            title: Text("Example"),
          ),
          body: Column(
            children: [
              //For getting result in International System Counting System
              //eg. Million, Billion, etc
              Text(
                NumberExtension.internationSystem(100000),
              ),
              //For getting result in Indian Counting System
              //eg. Lac, Crore, etc
              Text(
                NumberExtension.indianSystem(100000),
              ),
              //For Controlling the decimal point after result
              //eg. 1.2 Lac, 1.25 Lac, etc
              Text(
                NumberExtension.indianSystem(100000),
              ),
              Text(
                NumberExtension.indianSystem(100000, numbersAfterPoint: 2),
              ),
            ],
          ),
        ));
  }
}
4
likes
140
points
22
downloads

Publisher

unverified uploader

Weekly Downloads

A package to remove large numeric values from the value and add numeric extension to it.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on number_extension