input_calculator 2.0.0 copy "input_calculator: ^2.0.0" to clipboard
input_calculator: ^2.0.0 copied to clipboard

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
120
pub points
67%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, intl

More

Packages that depend on input_calculator