Skip to main content

mongol 11.2.0 copy "mongol: ^11.2.0" to clipboard
mongol: ^11.2.0 copied to clipboard

Flutter widget package for displaying and editing vertical Mongolian text.

[11.2.0 - 2026.10.12] #

  • Leave trailing spaces out of line alignment (#78) (@AltangerelG)
  • Break words that are too long for a line (#79) (@AltangerelG)
  • Fix emoji and CJK not rendering on web (#80) (@AltangerelG)
  • Dispose ellipsis paragraph in MongolParagraph (#81) (@AltangerelG)

[11.1.0 - 2026.10.08] #

PR (#77) from @Satsrag:

  • Add contextMenuBuilder to MongolTextField, matching Flutter's context menu API. The default builds the new MongolAdaptiveTextSelectionToolbar, which lays the icon buttons out beside the selected line (#76).
  • Deprecate MongolTextField.toolbarOptions in favor of contextMenuBuilder. It is now nullable; passing it still limits the default buttons.
  • MongolTextSelectionControls now only draws the selection handles and leaves the menu to contextMenuBuilder; its internal buildToolbar implementation is removed. It was never exported, so this is not a public API change. Passing a third-party TextSelectionControls that still implements the deprecated buildToolbar keeps working.
  • Export MongolTextSelectionControls, MongolTextSelectionToolbar, MongolTextSelectionToolbarButton and MongolAdaptiveTextSelectionToolbar from the package.
  • Fix MongolEditableTextState.contextMenuAnchors to anchor left and right of a vertical selection instead of above and below it.
  • Fix the cut entry of a ToolbarOptions producing a select-all button.
  • Show the context menu from contextMenuBuilder even when selectionControls is null, and refresh the clipboard state before the toolbar is shown, as Flutter does.
  • Replace the file-level deprecation ignores with line-level ignores on the remaining legacy-toolbar call sites.

11.0.0 2026.10.06 #

  • BREAKING CHANGE: MongolRadioListTile is no longer a StatelessWidget, and groupValue/onChanged are no longer required.
  • Carry TextHeightBasis up to MongolText and MongolRichText (#71) (@AltangerelG)
  • Migrate MongolRadioListTile to RadioGroup (#73) (@AltangerelG)
  • Add widget tests for MongolTextField (#74) (@AltangerelG)
  • Relayout maxLines text when the box grows (#72) (@AltangerelG)
  • Update linter version and handle warnings.
  • Migrate to material_ui package.
  • Require Flutter 3.47 to remove old deprecations.

10.0.0 2026.10.03 #

  • BREAKING CHANGE: MongolRichText can no longer be const.
  • Fix cursor misalignment on prefix text and prefix icons for input decorator (#67) (@AltangerelG)
  • Deprecate textScaleFactor in favor of textScalar to match Flutter (#68) (@AltangerelG)
  • Deprecate Matrix4.translate and Matrix4.scale to match Flutter (#69) (@AltangerelG)
  • Build the toolbar midpoint with its axes the right way round (#70) (@AltangerelG)

9.4.0 2026.09.23 #

  • Resolve the analyzer issues that have a mechanical fix (#62) (@AltangerelG)
  • Set fullwidth forms upright, like the ideographs they accompany (#64) (@AltangerelG)
  • Add widget tests for MongolInputDecorator (#65) (@AltangerelG)

9.3.0 2026.08.25 #

PR from @Satsrag:

  • Remove references to ExtendSelectionByPageIntent, which is no longer available in Flutter 3.44.
  • Add an internal horizontal adjacent-page intent and action for Mongol text editing.
  • Support horizontal Page Up and Page Down behavior using Flutter's Shortcuts, Intent, and Action architecture.
  • Follow Flutter's platform conventions:
    • On macOS and iOS, Page Up and Page Down scroll one horizontal page without moving the caret.
    • On Android, Fuchsia, Linux, and Windows, Page Up and Page Down move the caret one horizontal page.
    • Shift + Page Up and Shift + Page Down extend the selection by one horizontal page on all platforms.

9.2.1 2026.02.07 #

  • fixed: onTapOutside triggers when empty area tapped (@hubcin)
  • fixed: cursor handle when selection collapsed (@hubcin)

9.2.0 2026.01.26 #

  • Fixed MongolTextField's width problem when text and hint are empty (#39) (@hubcin)
  • Added onTapOutside feature for MongolTextField (@hubcin)

9.1.2 2026.01.22 #

  • Fixed cursor issue when hint text present (@hubcin)

9.1.1 2026.01.19 #

  • Fix rotateCJK: false initialization bug.

9.1.0 2026.01.19 #

  • Add rotateCJK parameter to allow disabling CJK rotation.
  • Fix alignment and spacing with rotated characters (#10, #48).
  • Fix withOpacity deprecation warnings.

9.0.0 2025.02.13 #

  • Updated for Flutter 3.29 (@sadespresso)
  • Migrated some properties (@sadespresso)
  • Fixed type issue that was preventing runs/builds on Flutter 3.29.0 (@sadespresso)

8.0.0 2024.05.13 #

  • Update widgets for Material 3 (#50) (@Satsrag)
  • New tonal buttons (@Satsrag)
  • New MongolFilledButton widget (@Satsrag)
  • New MongolCheckboxListTile widget (@Satsrag)
  • New MongolRadioListTile widget (@Satsrag)
  • New MongolSwitchListTile widget (@Satsrag)
  • New MongolCheckedPopupMenuItem (@Satsrag)
  • Update for breaking change in Flutter 3.22

7.0.0 2023.12.27 #

  • Update APIs to match the Flutter 3.16 release. (#47) (with lots of help from @Satsrag)
  • It's unclear if this would be a breaking change for those still using a lower version of Flutter, but making a major version bump just in case.
  • Added TextHeightBasis (similar to TextWidthBasis for Text) at the lower levels (ex, MongolTextPainter) but not all the way up to MongolText. This affects whether the widget height is the height of the parent when line wrapping or the height of the longestLine. The default right now is parent. See #49 for progress.
  • One known issue is emojis and CJK characters are not correctly horizontally centered in some circumstances. (#48)

6.0.1 2023.08.22 #

  • Fix images not displaying in pub.dev documentation.

6.0.0 2023.08.22 #

  • Fixes for breaking changes in Flutter 2.13, mostly related to the text selection API.

5.0.0 2023.05.15 #

  • Update APIs to match the Flutter 3.10 and Dart 3.0 release. (#45) (@Satsrag)
  • This is a major version bump because of the breaking changes in the Flutter update and the new requirement to use Dart 3.0.
  • The known issues in the version 4.0.0 changelog notes still exist.

4.0.0 2023.02.10 #

  • Update APIs to match the Flutter 3.7 release. Theoretically this may have added some improvements, but the main reason was that Flutter 3.7 broke the old package. This is a major version bump because some of the API changes were potentially breaking for users of mongol 3.4.0. (#38)
  • There are some known issues related to the input decorator for MongolTextField (#29, #30, #32, #39, #40, #41). Help requested to fix these. This release exports MongolEditableText if anyone needs a more low-level option.
  • The MongolText API appears to be unaffected by this update, but keep an eye on performance for large text strings. MongolTextPainter and MongolParagraph have a new dispose method and it is unclear how this may affect performance/memory for better or worse.

3.4.0 2023.01.05 #

  • Remove DefaultMongolTextEditingShortcuts from MongolEditableTextState (#35) (@Satsrag)
  • To switch the behavior of left/right and up/down keys in MongolEditableText, developers now need to add MongolTextEditingShortcuts at the top of the widget tree. See #33 for discussion.

3.3.1 2022.12.31 #

  • Fix: crash when MongolTextField contain a line end with ' \n' (#34) (@Satsrag)

3.3.0 2022.11.29 #

  • Fix label problems on outlined input border with MongolOutlineInputBorder (#28).
  • Export TextAlignHorizontal for MongolTextField.

3.2.0 2022.10.22 #

  • Updating internal code to remove compiler warnings. Required minimum of Flutter 2.17.
  • Added example app demo for MongolTextField to show options for input decorations.
  • Export MongolRenderEditable to get cursor location (#31).

3.1.0 2022.09.13 #

  • Added MongolTextField back in with fixes. (@Satsrag)

3.0.2 2022.02.10 #

  • Fix for bug caused by Flutter 2.10 upgrade (#20) (@azhansy)

3.0.1 2022.01.10 #

  • Exported MongolTextPainter so that it is public now.

3.0.0 2021.12.18 #

  • Removed MongolTextField and related classes from the library. The Flutter 2.8 update broke the editing widgets again. Even if we fixed this break, there was still the major issue of crashing when scrolling MongolTextField. It is easier to remove MongolTextField now and start over from scratch, either with the Flutter text editing widgets or with something like SuperEditor.

2.2.2 2021.11.7 #

  • Attempted to fix the issue with MongolTextField crashing when text content needs to scroll. However, since the issue is still not fixed, there is a deprecation warning on this class. Hopefully the error can be fixed with a future update or a replacement can be found, but currently there is nothing.

2.2.1 2021.9.20 #

  • Fix the errors caused by the Flutter 2.5 update.
  • Removed lots of tests (unfortunately) because the Flutter 2.5 update broke something internally with the custom Flutter testing implementation for the Mongol widgets.
  • Fixed the buttons.
  • Known issue: MongolTextField still crashes when text content needs to scroll.

2.2.0 2021.8.2 #

  • Added buttons: MongolTextButton, MongolOutlineButton, and MongolElevatedButton

2.1.0 2021.7.30 #

  • Added MongolPopupMenuButton along with its MongolPopupMenuEntry, MongolPopupMenuDivider, MongolPopupMenuItem, showMongolMenu
  • Added MongolTooltip (and MongolIconButton that needs it) so that MongolPopupMenuButton will have a vertical text tooltip.
  • Added MongolListTile so that it can be used as a MongolPopupMenuItem or in a horizontal ListView.
  • Added supporting (though incomplete) tests for MongolPopupMenuButton and MongolListTile.
  • Switched to flutter_lints for the demo project.

2.0.2 2021.7.15 #

  • Fixed MongolTextField tap selection not working on iOS (#12)
  • Switched to flutter_lints instead of pedantic

2.0.1 2021.6.10 #

  • Fixed bug for range error when selecting past end of text in MongolTextField
  • Fixed MongolTextAlign regression (#6)

2.0.0 2021.5.28 #

  • Flutter 2.2 broke some of the internal workings of this package. This update fixes those.
  • This update increases the major version to 2 because an automatic update for projects still on Flutter 2.0 would probably break things.
  • There are no significant new features with this release, but there are numerous internal changes to match changes made to the Flutter text editing widgets.
  • There are several known issues with this release. Please open a GitHub issue if they are affecting your app.

1.1.0 2021.3.13 #

  • Implemented MongolTextAlign (supports top, center, bottom, justify)
  • Known issue: Spaces after words are included in the measurements so MongolTextAlign.bottom aligns the space to the bottom and not the text itself.

1.0.0 2021.3.6 #

  • Null safe
  • Added MongolTextField and supporting classes
  • Since MongolTextField fills in the largest missing gap for Mongolian text rendering, this library will now be marked as 1.0.0. This signifies feature completeness though there are some known bugs and it would be good for another version to include some keyboards.
  • Filled in missing functionality in MongolParagraph and MongolTextPainter.

0.8.0-nullsafety.0 2020.11.27 #

  • Migrated to sound null safety

0.7.1 2020.10.26 #

  • Lowered the minimum version number requirement for the meta dependency.

0.7.0 2020.10.24 #

  • Support for rotating emoji and CJK characters.

0.6.1 2020.10.10 #

  • Added static analysis options.
  • Fixed warnings and errors from the static analysis.
  • Implemented MongolTextPainter.getPositionForOffset with tests
  • Close MongolDialog on button click in demo app

0.6.0 2020.10.2 #

  • Added MongolRichText with support for TextSpan and its substring text styles.
  • Added MongolText.rich constructor to support using a default font theme.
  • Implemented textScaleFactor. It existed before but didn't do anything.
  • Removed the default Menksoft font that was included with the library. This creates a bit more setup but makes the library smaller and allows developers to use any Mongolian font. Also removed MongolFont class.
  • Added documentation modified from the standard Flutter docs.
  • Changed the license to be in alignment with the Flutter BSD-3 license.
  • Updated the demos to include a keyboard and vertical TextField. These are not in the library yet, but should be fairly easy to reproduce by studying the demos.
  • Added more tests.

0.5.0 2020.5.31 #

  • Added hit testing to MongolText and its associated classes so that a GestureDetector can be applied to it.
  • Added the textScaleFactor parameter to MongolText.
  • Added debugFillProperties() to various MongolText related classes.

0.4.1 2020.2.21 #

  • Change unsupported 2018 text theme items to 2014 version in MongolAlertDialog

0.4.0 2020.2.19 #

  • Added MongolAlertDialog.

0.3.2 2020.1.28 #

  • Fixed bug: Spaces after a newline character caused newline char to be inserted in ParagraphBuilder.

0.3.1 2020.1.5 #

  • Minor changes. Was going to include mongol_code as a part of this package but released it as a separate Dart package instead.

0.3.0 2019.11.29 #

  • Added a default Mongolian font.
  • Hiding MongolRichText for now since TextSpans are not yet supported.

0.2.0 2019.11.26 #

  • Added support for new line characters.

0.1.0 2019.11.24 #

  • Refactored into MongolText and MongolRichText widgets to more closely match Text and RichText.

0.0.1 2019.7.23 #

  • Provides a MongolText widget that handles line wrapping at spaces.
  • Doesn't handle new lines or styling.
61
likes
155
points
2.12k
downloads
screenshot

Documentation

API reference

Publisher

verified publishersuragch.dev

Weekly Downloads

Flutter widget package for displaying and editing vertical Mongolian text.

Repository (GitHub)
View/report issues

Topics

#text

License

BSD-3-Clause (license)

Dependencies

characters, cupertino_ui, flutter, material_ui

More

Packages that depend on mongol