money_readable 1.1.15 copy "money_readable: ^1.1.15" to clipboard
money_readable: ^1.1.15 copied to clipboard

How to get a number converted into something like this 12K, 1.5M, 4.2B from a normal number like 134900

Money Readable #

Money converter

Installation #

  1. Add the latest version of package to your pubspec.yaml (and rundart pub get):
dependencies:
  money_readable: ^1.1.14
  1. Import the package and use it in your Flutter App.
import 'package:money_readable/money_readable.dart';

final n1 = moneyReadableInt(1234); // 1.2K
final n2 = moneyReadableInt(12340000); // 12M

final n1 = moneyReadableIntInd(1234); // 1.2K
final n2 = moneyReadableIntInd(12340000); // 1.2Cr

///Usage of this extension
class MyPage extends StatelessWidget {
  const MyPage({super.key});
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        body:Column(children:[
          Text("Hello"),
          20.width, ///Extension
          Text("World"),
          20.height /// ///Extension
        ])
    );
  }
}
///We have added Custom Loader and Flutter Toast message so that you use easly in your project
    CustomLoader.message("Your msg"));
    CustomLoader.loader());
    CustomLoader.closeLoader());
    CustomLoader.showLoader("Please wait..."));
  if (await isNetworkAvailable()) {
       ///Intenet Available
  } else {
  ///Intenet Not Available
  }
///Progress Dialog box
LoadingIndicatorDialog().show(context);
LoadingIndicatorDialog().dismiss();
0
likes
120
pub points
28%
popularity

Publisher

unverified uploader

How to get a number converted into something like this 12K, 1.5M, 4.2B from a normal number like 134900

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

connectivity_plus, flutter, flutter_easyloading, fluttertoast

More

Packages that depend on money_readable