input_calculator 1.1.0+5 copy "input_calculator: ^1.1.0+5" to clipboard
input_calculator: ^1.1.0+5 copied to clipboard

outdated

With Input Calculator you can add functionality of calculation in an TextField.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'home_page.dart';

Route<dynamic> _generateRoute(RouteSettings settings) {
  switch (settings.name) {
    case HomePage.id:
      return MaterialPageRoute(builder: (_) => HomePage());
    default:
      return MaterialPageRoute(
        builder: (context) => Scaffold(
          body: Center(
            child: Text('No route defined for ${settings.name}'),
          ),
        ),
      );
  }
}

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      initialRoute: HomePage.id,
      onGenerateRoute: _generateRoute,
    );
  }
}
13
likes
40
pub points
67%
popularity

Publisher

unverified uploader

With Input Calculator you can add functionality of calculation in an TextField.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter, intl

More

Packages that depend on input_calculator