number_words_spelling 0.0.3 copy "number_words_spelling: ^0.0.3" to clipboard
number_words_spelling: ^0.0.3 copied to clipboard

outdated

Number Words Spelling

example/lib/main.dart

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

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);
  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  String _words;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            TextField(
              onChanged: (val) {
                _words = NumberToWords.convert(1313);
              },
            ),
            Text(
              _words,
              style: Theme.of(context).textTheme.display1,
            ),
          ],
        ),
      )
    );
  }
}
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Number Words Spelling

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, intl

More

Packages that depend on number_words_spelling