Skip to content

Mutable editors#29

Merged
thenixan merged 7 commits into
mainfrom
mutable-editors
Mar 17, 2026
Merged

Mutable editors#29
thenixan merged 7 commits into
mainfrom
mutable-editors

Conversation

@thenixan

Copy link
Copy Markdown
Contributor

No description provided.

Add getters/setters for locale, groupSeparator, and allowNegative.
Rebuild the internal ParsedNumberFormat and reformat the current value
when these options change. Ensure number setter respects allowNegative.
Add tests covering locale, separator, and allowNegative mutations.
Add mutable properties to controllers

CurrencyEditingController: currencyName, currencySymbol,
decimalSeparator
DecimalEditingController: minimalFractionDigits, maximumFractionDigits,
decimalSeparator

Setters rebuild the format and reformat the current value when changed.
Add tests verifying reformatting, no-op assignments (no notifications),
getters, and factory subclass types
Expand documentation with quick start, configuration, runtime
option changes, class hierarchy, and locale examples.
Update example app to use CurrencyEditingController,
DecimalEditingController, and IntegerEditingController; add
currency/locale pickers, change UI layout and titles, and
demonstrate mutable formatting options at runtime
Document known limitations in README (precision, grouping, fraction
digits, RTL and runtime option changes)

Clamp decimal fraction digits to 0–20 in ParsedNumberFormat

Simplify RealPart parsing, handle grouping correctly, stop inserting an
automatic zero, and return null width for StaticPart

Minor parentheses cleanup in text controller
@thenixan thenixan merged commit cd6c351 into main Mar 17, 2026
2 checks passed
@thenixan thenixan deleted the mutable-editors branch March 17, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant