math_keyboard
0.4.0, released 2 months ago by simpleclub.com
Math expression editing with an on-screen software keyboard or physical keyboard input in Flutter.
What it does
Provides a typeset input field and custom integrated math keyboard for editing mathematical expressions in Flutter without relying on plugins or web views. It supports converting between TeX and math expressions, custom themes, and accessibility features.
AI-written summary of version 0.4.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need users to input mathematical expressions, formulas, or numbers within a Flutter app.
- You require a custom on-screen math keyboard alongside physical keyboard support.
- You want form field support or integration with standard InputDecoration.
Skip it when
- You only need standard text inputs without advanced mathematical typesetting or symbols.
Strengths
- Fully integrated software keyboard for math without web views or plugins.
- Supports both expression and number-only modes with custom variables.
- Comprehensive accessibility features, localizable strings, and theme configuration.
- Built-in TeX conversion utilities for math expressions.
Weaknesses
- Physical keyboard input on mobile can cause unexpected behavior due to existing Flutter issues.
- Requires specific Flutter/Dart SDK versions.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 7
import 'package:flutter/material.dart';
import 'package:math_keyboard/math_keyboard.dart';
Widget build(BuildContext context) {
return MathField(
keyboardType: MathKeyboardType.expression,
variables: const ['x', 'y', 'z'],
decoration: const InputDecoration(),
onChanged: (String value) {},
onSubmitted: (String value) {},
autofocus: true,
);
}Alternatives
Packages that do the same job and could replace math_keyboard.
- form_builder_extra_fields
Additional ready-made form input fields for the flutter_form_builder package
80Compare - form_builder_file_picker
File picker input field for the flutter_form_builder package.
70Compare - flutter_input_chips
Flutter widget that builds an input field with input chips options.
45Compare - flutter_masked_text2
Masked and money text input controllers for Flutter text fields.
50Compare
Works with
Packages commonly used together with math_keyboard: ones it builds on, ones built on it, and its own family.
- petitparsermath_keyboard depends on itBuild fast, composable, and type-safe grammars and parsers in plain Dart code.
- intlmath_keyboard depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- flutter_math_forkmath_keyboard depends on itFast and high-quality TeX math equation rendering with pure Dart and Flutter.
- math_expressionsmath_keyboard depends on itParse and evaluate mathematical expressions in real, vector, and interval contexts.
- holding_gesturemath_keyboard depends on itA widget that detects long presses and triggers callbacks after a hold timeout.