mongol library
Classes
- HorizontalCaretMovementRun
- The consecutive sequence of TextPositions that the caret should move to when the user navigates the paragraph using the left arrow key or the right arrow key.
- MongolAlertDialog
- This class was adapted from the Flutter AlertDialog class
- MongolDialog
- This class was adapted from Flutter Dialog
- MongolEditableText
- A basic text input field.
- MongolEditableTextState
- State for a MongolEditableText.
- MongolElevatedButton
- A vertical Material Design "elevated button".
- MongolIconButton
- An IconButton that uses a MongolTooltip
- MongolListTile
- A single fixed-width column that typically contains some text as well as a leading or trailing icon.
- MongolListTileTheme
- An inherited widget that defines color and style parameters for MongolListTiles in this widget's subtree.
- MongolOutlinedButton
- A vertical Material Design "Outlined Button"; essentially a MongolTextButton with an outlined border.
- MongolOutlineInputBorder
-
Draws a rounded rectangle around a
MongolInputDecorator
's container. -
MongolPopupMenuButton<
T> - Displays a menu when pressed and calls onSelected when the menu is dismissed because an item was selected. The value passed to onSelected is the value of the selected menu item.
-
MongolPopupMenuButtonState<
T> - The State for a MongolPopupMenuButton.
- MongolPopupMenuDivider
- A vertical divider in a material design popup menu.
-
MongolPopupMenuEntry<
T> - A base class for entries in a material design popup menu.
-
MongolPopupMenuItem<
T> - An item in a Mongol material design popup menu.
-
MongolPopupMenuItemState<
T, W extends MongolPopupMenuItem< T> > - The State for MongolPopupMenuItem subclasses.
- MongolRenderEditable
- Displays some text in a scrollable container with a potentially blinking cursor and with gesture recognizers.
- MongolRenderEditablePainter
- An interface that paints within a MongolRenderEditable's bounds, above or beneath its text content.
- MongolRichText
- A string of rich text in vertical Mongolian layout.
- MongolText
- A run of vertical text with a single style.
- MongolTextButton
- A vertical Material Design "Text Button".
- MongolTextEditingShortcuts
- Switch up/down arrow keys and left/right arrow keys
- MongolTextField
- A material design text field for vertical Mongolian script.
- MongolTextPainter
- An object that paints a Mongolian TextSpan tree into a Canvas.
- MongolTooltip
- A Mongol material design tooltip.
- MongolWordBoundary
- A TextBoundary subclass for locating word breaks.
- SidelineInputBorder
-
Draws a vertical line at the right side of a
MongolInputDecorator
's container and defines the container's shape. - TextAlignHorizontal
- The horizontal alignment of vertical Mongolian text within an input box.
- TextEditingValue
- The current text, selection, and composing state for editing a run of text.
- TextInputType
- The type of information for which to optimize the text input control.
- TextSelection
- A range of text that represents a selection.
Enums
- MongolTextAlign
- Whether and how to align text vertically.
- SelectionChangedCause
- Indicates what triggered the change in selected text (including changes to the cursor location).
- SmartDashesType
- Indicates how to handle the intelligent replacement of dashes in text input.
- SmartQuotesType
- Indicates how to handle the intelligent replacement of quotes in text input.
- TextHeightBasis
- The different ways of measuring the height of one or more lines of text.
Functions
-
mapHorizontalToMongolTextAlign(
TextAlign? textAlign) → MongolTextAlign? - A convenience method for converting MongolTextAlign to TextAlign
-
positionMongolDependentBox(
{required Size size, required Size childSize, required Offset target, required bool preferRight, double horizontalOffset = 0.0, double margin = 10.0}) → Offset - Position a child box within a container box, either left or right of a target point.
-
showMongolMenu<
T> ({required BuildContext context, required RelativeRect position, required List< MongolPopupMenuEntry< items, T? initialValue, double? elevation, String? semanticLabel, ShapeBorder? shape, Color? color, ) → Future<T> >T?> -
Show a popup menu that contains the
items
atposition
.
Typedefs
- MongolEditableTextContextMenuBuilder = Widget Function(BuildContext context, MongolEditableTextState editableTextState)
- Signature for a widget builder that builds a context menu for the given MongolEditableTextState.
- MongolPopupMenuCanceled = void Function()
- Signature for the callback invoked when a MongolPopupMenuButton is dismissed without selecting an item.
-
MongolPopupMenuItemBuilder<
T> = List< MongolPopupMenuEntry< Function(BuildContext context)T> > - Signature used by MongolPopupMenuButton to lazily construct the items shown when the button is pressed.
-
MongolPopupMenuItemSelected<
T> = void Function(T value) - Signature for the callback invoked when a menu item is selected. The argument is the value of the MongolPopupMenuItem that caused its menu to be dismissed.
- TextEditingValueCallback = void Function(TextEditingValue value)
- A void function that takes a TextEditingValue.