num_to_word_en_vi 1.0.2 copy "num_to_word_en_vi: ^1.0.2" to clipboard
num_to_word_en_vi: ^1.0.2 copied to clipboard

A plugin project to convert numbers to words with Vietnamese/English language.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'dart:async';
import 'package:num_to_word_en_vi/num_to_word_en_vi.dart';

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

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    final value = NumberToWordEnVi(number: 501500, language: 'en');
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Text to word example'),
        ),
        body: Padding(
          padding: const EdgeInsets.all(16),
          child: Center(
            child: Text(
              value.convert(),
              style: TextStyle(
                  fontSize: 15,
                  fontWeight: FontWeight.w400,
                  color: Colors.blue[600]),
            ),
          ),
        ),
      ),
    );
  }
}
6
likes
0
points
44
downloads

Publisher

unverified uploader

Weekly Downloads

A plugin project to convert numbers to words with Vietnamese/English language.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on num_to_word_en_vi

Packages that implement num_to_word_en_vi