pecahan_rupiah 0.0.1 copy "pecahan_rupiah: ^0.0.1" to clipboard
pecahan_rupiah: ^0.0.1 copied to clipboard

simple way to convert number to rupiah.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: MaterialApp(
        home: Scaffold(
          body: SafeArea(
            child: Column(
              children: [
                Text(Pecahan.rupiah(value: 2000000)),
                Text(Pecahan.rupiah(value: 2000000, withRp: true))
              ],
            ),
          ),
        ),
      ),
    );
  }
}
3
likes
30
pub points
75%
popularity

Publisher

unverified uploader

simple way to convert number to rupiah.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter, intl

More

Packages that depend on pecahan_rupiah