Skip to content

Commit

Permalink
Fix comma style (#14)
Browse files Browse the repository at this point in the history
* Update pubspec.yaml

* Update CHANGELOG.md

* Update math_field.dart
  • Loading branch information
creativecreatorormaybenot committed Mar 22, 2021
1 parent 70d2eff commit 10323d1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions math_keyboard/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.0+1

* Fixed styling of commas as decimal separators.

## 0.1.0

* Initial public version.
6 changes: 5 additions & 1 deletion math_keyboard/lib/src/widgets/math_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,11 @@ class _FieldPreview extends StatelessWidget {
// that can simply be replaced by an alternate decimal separator
// for the preview.
'.',
decimalSeparator(context),
// We need to wrap the decimal separator in an extra group ("{}")
// because commas will otherwise be spaced as if they created a
// list, e.g. in vector notation (there is a padding to the right
// of the comma).
'{${decimalSeparator(context)}}',
);

return ConstrainedBox(
Expand Down
2 changes: 1 addition & 1 deletion math_keyboard/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: math_keyboard
description: >-2
Math expression editing using an on-screen software keyboard or physical keyboard input in a
typeset input field in Flutter.
version: 0.1.0
version: 0.1.0+1
homepage: https://github.com/simpleclub/math_keyboard/tree/main/math_keyboard

environment:
Expand Down

0 comments on commit 10323d1

Please sign in to comment.