flutter_numpad_widget 0.1.1 copy "flutter_numpad_widget: ^0.1.1" to clipboard
flutter_numpad_widget: ^0.1.1 copied to clipboard

A set of widgets that provide numpad input and formatted display of that input.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Numpad Example',
      theme: ThemeData(
          primarySwatch: Colors.amber,
          buttonTheme: ButtonThemeData(
              textTheme: ButtonTextTheme.normal,
              buttonColor: Colors.blueGrey[300],
              shape: RoundedRectangleBorder(
                  borderRadius: BorderRadius.all(Radius.circular(30))))),
      home: FormattedNumpadExample(),
    );
  }
}

class FormattedNumpadExample extends StatelessWidget {
  final NumpadController _numpadController =
      NumpadController(format: NumpadFormat.PHONE);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Numpad Example'),
      ),
      body: Container(
        child: Column(
          children: <Widget>[
            Padding(
              padding: const EdgeInsets.all(16.0),
              child: NumpadText(
                style: TextStyle(fontSize: 40),
                controller: _numpadController,
              ),
            ),
            Expanded(
              child: Numpad(
                controller: _numpadController,
                buttonTextSize: 40,
              ),
            )
          ],
        ),
      ),
    );
  }
}
4
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A set of widgets that provide numpad input and formatted display of that input.

Repository (GitHub)
View/report issues

License

BSD-2-Clause (license)

Dependencies

flutter

More

Packages that depend on flutter_numpad_widget