mre_fields 0.1.0 copy "mre_fields: ^0.1.0" to clipboard
mre_fields: ^0.1.0 copied to clipboard

Form fields for Flutter: text that follows the language typed (RTL and LTR), clear button, suggestions and image paste. Themeable and localizable.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased] #

0.1.0 - 2026-10-01 #

Added #

  • MREFieldsTheme theme extension: field border radius, content padding (compact and expanded), window-size breakpoints, and MREWindowSize classification. Works without registration through MREFieldsTheme.defaults.
  • MREFieldsStrings: one immutable set of user-visible texts with English defaults, so every field text can be localized.
  • Text direction: detectTextDirection and detectStrongTextDirection (first word with a letter decides, constant cost), String getters textDirection, isRtl, directionOr, autoTextAlign, the MREAutoText widget (every Text parameter, plus autoAlign; also MREAutoText.rich), Text.autoDirection() and Text.autoAlign(), Widget.withTextDirection, and safeDisplayText for unpaired surrogates.
  • MRETextField: a form text field with live direction, clear button, select on focus, suggestions, and the parameters of TextFormField. Radius and padding come from the parameter, then MREFieldsTheme, then your InputDecorationTheme.
  • MRESuggestionBar, mreFilterSuggestions, MREFieldClearButton and MRESafeTextEditingController, usable without the field.
  • Image paste for MRETextField through imagePaste: MRENoImagePaste (default), MREImageCallbackPaste and MREImageAttachmentPaste, with limits, rejection reasons, and onImagePasted / onImagesChanged. Images arrive through the paste shortcut (desktop), the browser paste event (web), the selection menu and the Android keyboard.
  • MREAttachmentStrip (thumbnails with open, remove and replace), MREImageViewer, MREAttachmentsController, MREImagePasteScope for any text field, MREClipboardImageReader, and mreSniffImageMimeType.
  • New MREFieldsStrings texts: pasteImageLabel and attachedImageLabel.
  • Depends on pasteboard to read images from the clipboard, and on web for the browser paste event.
  • An example app for every platform (example/), with a page for each feature, a light and dark switch, an English and Arabic switch, and a live radius slider.
  • @MREPreview() annotation to preview any widget in light, dark, right to left, large text, narrow and wide layouts.
4
likes
0
points
496
downloads

Publisher

verified publisherdev.mrecode.net

Weekly Downloads

Form fields for Flutter: text that follows the language typed (RTL and LTR), clear button, suggestions and image paste. Themeable and localizable.

Repository (GitHub)
View/report issues

Topics

#form #text-field #rtl #input #clipboard

License

unknown (license)

Dependencies

flutter, meta, pasteboard, web

More

Packages that depend on mre_fields