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

unlistedoutdated

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.11
  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
        ])
    );
  }
}

1
likes
0
points
5
downloads

Publisher

verified publishersanjaysharma.info

Weekly Downloads

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

License

unknown (license)

Dependencies

flutter

More

Packages that depend on money_readable