Skip to main content

nativemind_core 1.5.0 copy "nativemind_core: ^1.5.0" to clipboard
nativemind_core: ^1.5.0 copied to clipboard

The light base of the NativeMind widgets: design tokens, theme, editions from configuration, primitives, PIN keypad, navigation, charts, l10n and icons. No plugins.

1.5.0 #

Additive (SDD widgets.nativemind.net flows/sdd-nativemind-widgets-liendeed; the LienDeed apps move onto the NativeMind packages). Nothing of 1.4.x changes its look, signature or behaviour, and there are no new strings: nativemind_translations 1.0.x subclasses NmLocalizations, so new strings would stop it from compiling. The three exports below already shipped in 1.4.1 on pub.dev (published 2026-11-17 from the working tree); 1.5.0 documents them.

  • NmTableUrlState: a table route's filter, raw filter, sort, page, size and columns in the URL. It has a compact f codec, odataFilter / combine / filterExpression, and value equality. Carried from the LienDeed Pro app.
  • NmUpdateLevel (none, available, required), nmCompareVersions and nmUpdateLevel(current, {minimum, latest}).
  • nmThemeCss(theme, {extra, header}): the theme tokens as CSS custom properties (light, dark from the system, and data-theme) for a product website. It replaces the tool scripts the LienDeed and dropexpired sites each carried.

1.4.1 #

Maintenance release, no API or behaviour change. Checked with Flutter 3.50.0 (stable, Dart 3.14): analyzer clean apart from the SDK deprecation of package:flutter/material.dart / cupertino.dart in favour of material_ui / cupertino_ui, which stays: moving would require Flutter 3.47+ and break apps on 3.32–3.44. Dependency constraints and the SDK floor are unchanged; every dependency resolves to its latest compatible version.

  • example/example.dart: a runnable example for pub.dev.
  • Shorter pubspec description (pub.dev shows up to 180 characters).
  • homepage removed: widgets.nativemind.net is not online; repository stays.

1.4.0 #

Additive (SDD consilium.nativemind.net flows/sdd-konsilium-nativemind-framework — the Konsilium app moves onto the NativeMind packages). Nothing of 1.3.x changes its look or signature, and nothing its behaviour except the two accessibility fixes listed at the end; the new options default to today's behaviour. Still no plugins.

  • NmMiniAppHost / NmMiniAppKind (none, telegram, max): the Telegram / Max Mini App host for Flutter Web — kind, inside, initData, platform, language, hasMainButton, hasBackButton, ready(), expand(), openLink(url), setMainButton(label, {onTap, busy, color, textColor}) (null label hides), setBackButton(onTap) (null hides), setChromeColor(color). Web through dart:js_interop; elsewhere none and safe no-ops.
  • NmPrimaryAction: one primary action per screen — renders its child (the screen's button), drives the Mini App MainButton while it is the visible one (the previous one takes over on dispose) and runs on Ctrl/⌘+N (shortcut, activator); NmPrimaryAction.trigger() / hasActive.
  • NmToast.messengerKey + NmToast.showGlobal(message, {tone, action, onAction, duration, icon}): toasts without a BuildContext (undo toasts with action).
  • NmSubmitOnEnter (Ctrl/⌘+Enter always, Enter on desktop or with enterSends), NmStarRating (48 px targets, read-only without onChanged), nmConfirmSheet (bottom sheet, true only on the action), NmTranslatableText (translation ↔ original toggle, labels from the app), NmLanguageLevelsEditor + NmLanguageLevel.
  • NmAsyncSection.reloadable: the builder gets a reload callback; the value stays on screen while it reloads.
  • NmInitialsAvatar.image: an optional photo over the initials (initials while loading and on error).
  • NmCard.radius: an optional corner radius.
  • NmTheme.minTapTarget (padded targets, icon / text / filled / outlined buttons at least this size), NmTheme.fontFamily and NmTheme.fontFamilyFallback (replaces NmTheme.fontFallback; effectiveFontFallback).
  • NmPressable(child, {onTap, radius = 10, scale = .97, focusColor, hoverColor, focusNode, autofocus}): a public focusable tap target — hover shade and click cursor, a 2 px focus ring outside the child, Enter / Space activation, press scale; inert without onTap. The internal NmTap is unchanged.
  • NmAsyncSection (both constructors): loadingBuilder and errorBuilder(context, error, retry) (the raw error; describeError still decides what is rethrown). Null = the current loading / error UI.
  • NmErrorState: icon (null = the red exclamation) and actions (extra buttons under the retry button; empty = none).
  • NmScaledBox.scaleMediaQuery (default false): the child sees the scaled box as its MediaQuery size and the padding / viewPadding / viewInsets divided by the scale.
  • NmNavDestination.semanticLabel; NmBottomNavBar background, unselectedColor, iconOpacity (null = today's look).
  • NmTokenButton: maxLines (default 1), dense (4 px lower — never below the phone tap target —, tighter sides, 1 px smaller label), outlined (a 40 % hairline; a ghost turns the neutral "ghost with a border"), and NmTokenButton.tinted (brand-tint fill, brand text; variant reports ghost — NmTokenButtonVariant gets no new value, so exhaustive switches of 1.3.x consumers keep compiling).
  • NmPill: radius (null = round) and dense (8 × 2 padding).
  • NmFilterChip: dense (a 34 px borderless pill, radius 17, on the sunken surface inside a 44 px tap area) and background (the fill when not selected).
  • NmSegmentedControl: stacked (the glyph above a small 11 px label; null = the row), stackBelowWidth (with stacked null, stack while the window is narrower) and minHeight (e.g. 48, content centred); NmSegment.badge (a small NmBadge after the bare label — on the glyph when stacked — instead of the "Label 3" text of count; 0 hides it; drawn only by NmSegmentedControl).
  • NmPageScroll: centered (default false — the max-width column in the middle of a wider window) and bottomPadding (null = twice gapXl).
  • NmDashedChip: accent (default false — a 1.5 px brand dashed border at 40 % and a medium brand label), height (null = 30), expand (default false — full width, label centred), icon and radius (null = round ends).

Accessibility changes of existing widgets (at rest they paint exactly as before):

  • NmTokenButton takes keyboard focus: Tab reaches it, Enter / Space press it, and a 2 px accent ring (60 %) shows while it is focused from the keyboard. Disabled and busy buttons are not focusable. The keyboard focus order of a screen now includes these buttons.
  • NmBottomNavBar and the NmSidebar items announce the badge count: "Inbox, 3" (the sidebar keeps the count label first: ".com, 4,912, 3"); semanticLabel replaces the whole announcement.

1.3.0 #

Additive (SDD consilium.nativemind.net flows/sdd-konsilium-jobcopilot-widgets — the Konsilium Job Copilot extension moves onto the NativeMind packages). Nothing of 1.2.x changes its look, behaviour or signature.

  • NmTokenButton (.secondary, .ghost, NmTokenButtonVariant.danger): the non-deprecated button on the theme tokens — palette gradient in the expressive style, solid accent otherwise; optional fixed height, busy dots. For NativeMind DS products; Eugene Tretiakov's handmade family stays the DealApp button.
  • NmAppMark: a product mark — one letter (Consilium C, Jobs J) or a glyph on the palette gradient.
  • NmInitialsAvatar (initialsOf, colorOf): a round initials avatar with a stable color from the name.
  • NmScaledBox: scales a whole subtree (a "simple mode" with bigger targets) while it still fills its box.
  • NmStackedBar / NmStackedBarSegment: one bar of shares with a legend.
  • NmScorePill.rating: a pill for a small-scale rating (0–5) with decimals, ≈ for estimates and a muted low band; nmScoreTone takes an optional low tone (danger by default, as before).
  • NmBrowserExtension: the browser extension bridge for Flutter Web extension pages — runtime messaging with the background worker, optional site access, new tabs, picking text files; safe no-ops off the web, no plugins.

1.2.1 #

  • Docs: README (install, handmade authors and roles, links), migration guide, PROVENANCE.
  • pubspec: repository field so README links resolve on pub.dev.

1.2.0 #

Additive (SDD flows/sdd-widgets-handmade, follow-up of task 4.4 DealApp). Everything of 1.1.0 keeps its look and behaviour when the new options are not used.

  • Eugene Tretiakov's dialogs are localizable: nmErrorDialog, nmSuccessDialog, nmAttentionDialog, nmGetTextDialog, nmGetAmountDialog, nmYesNoDialog, nmYesNoDialogExtended, nmYesNoDialogDelayed and the NmTimerButton seconds unit read 9 new NmLocalizations strings (dialogFailedTitle, dialogSuccessTitle, dialogClose, dialogDone, dialogCancel, dialogChoose, dialogYes, dialogNo, dialogSecondsShort) in en / ru / zh / hi / th. With NmL10n.delegate registered they follow the app locale (other languages read English, as every core string); without it they are the original Russian texts, unchanged.
  • nmYesNoDialogExtended: titleText, yesButtonText, noButtonText are now String?; null (the default) = the localized «Выберите» / «Да» / «Нет». Passing a string works as before.
  • New NmDialogOptions (app-wide): shape (null = nmDefaultShape()), enterSubmits (default false; when true, Enter / numpad Enter presses the main button of the error / success / attention / yes-no dialogs) and strings(context); nmLocalizedDialog(builder, onEnter:) builds a dialog with those strings.
  • The 22 buttons of Eugene's family get a click cursor and DealApp's hover (.85) / pressed (.7) dimming (DealTap of the DealApp web client); at rest they paint exactly as before.
  • All changes inside the handmade bodies are >>> generated blocks with the replaced lines kept as // was: (PROVENANCE.md); handmade-src/tools/verify_eugene.py restores them and still finds the bodies identical.

1.1.0 #

Additive (SDD flows/sdd-widgets-handmade). Everything of 1.0.0 stays as it was.

  • New: NmLocalizationService — Wishyut's run-time string service (VPNclient-app, 2025, handmade, without AI; see PROVENANCE.md): load(locale, {package}) reads packages/<package>/assets/lang/<code>.json (default package nativemind_vpn, package: null = the app's own assets/lang/; English file when the language file is missing), to(key) returns the string ([key] when missing), currentLocale (English before load). It is localization infrastructure, so it lives here: nativemind_vpn uses it without nativemind_translations (and so without nativemind_copilot and its plugin). nativemind_translations 1.0.0 re-exports it unchanged.
  • Still no plugins.

1.0.0 #

First major version built on code of NativeMind people (SDD flow sdd-widgets-handmade, Phase 1). Migration: doc/migration-1.0.md; who wrote what: PROVENANCE.md.

New

  • Editions from configuration — NmConfigs, NmConfig, NmConfigCurrent, NmEditionTheme: Anton Dodonov's 2021–22 mechanism (SoundHealer / iScillator) with his keys (title, description, defaults, forces, pages, select, visible, gradient, gradient2, forecolor*, plus palette). NmConfig.resolve = forces → saved → defaults → first; the edition comes from --dart-define=NM_EDITION=<id> (NM_EDITION_OS overrides the platform). An edition missing on one platform falls back to another; editions without forecolor* get palette colours.
  • Button family "size × role" of Eugene Tretiakov (DealApp, 2024): NmWideActionButton, NmWideActionButtonNoIcon, NmWideActionButtonNoIconGrayed, NmWideYellowActionButton, NmWideActionButtonAlt, NmMediumIconActionButton, NmMediumActionButtonRed, NmMediumIconActionButtonBlue, NmToggleActionButton, NmWideCancelButton, NmMediumActionButtonSecondary, NmMediumActionButton, NmMediumActionButtonGrayed, NmTextActionButton, NmMediumActionButtonCompact, NmMediumActionButtonSecond, NmSmallActionButton, NmSmallActionButtonSecondary, NmSmallCancelButton, NmDialogGreenButton, NmDialogGrayButton, NmDialogRedButton, nmBackAndFalse, nmBackAndTrue; his tokens NmColorsRes / nmColorsRes (isMan palettes), nmButtonHeight50/45/40, nmDefaultShape, nmSwd (column width, 500). Fixed: the button heights were computed once (0 before the first frame, stale after rotation) — now getters.
  • Dialogs without context of Eugene Tretiakov: nmErrorDialog, nmSuccessDialog, nmAttentionDialog, nmGetTextDialog, nmGetAmountDialog, nmYesNoDialog, nmYesNoDialogExtended, nmYesNoDialogDelayed, and NmTimerButton. They find the root navigator themselves; texts are Russian, as in DealApp.
  • NmPinCodeKeypad + NmPinCodeModel / NmPinCodeTap: Andrey Bekhtold's PIN model (12 cells, length 4, count / fill, tap / delete / forgot), ported to Dart; look per Figma MVP Dilap (keys 65, dots 16, gaps 24).
  • NmPalette.blue / green / orange / pink and NmPalette.byName.

Deprecated (work until core 2.0)

  • NmButton() (primary) → NmMediumActionButton / NmWideActionButtonNoIcon (handmade, Eugene Tretiakov).
  • NmButton.destructive → NmMediumActionButtonRed / NmDialogRedButton.
  • NmConfirmDialog → nmYesNoDialogExtended / nmYesNoDialog.
  • NmPalette.nativeMindBlue / nativeMindGreen / nativeMindOrange / nativeMindPink → blue / green / orange / pink (ids stay nativeMind*, saved settings keep working).

Breaking

  • NmSurface (visibility matrix column) is renamed NmVisibilitySurface (it clashed with copilot's NmSurface).
  • NmSvgIcons (flags, payment, apps) and NmCustomIcons (telecom) moved to nativemind_widgets — their assets were always there; nativemind_widgets exports them as before. Flags/apps go to nativemind_vpn in its 1.0.
  • Removed, unused by any package or app: NmStatusBar, NmIconLegend, NmIconLegendItem, NmCommandLog, NmStatusPill, NmViewModeSwitcher, NmIconStack, NmIconStackItem, NmDeviceClock, NmCompactSearch, NmVoiceGestureButton, NmInlineTranscriptionDisplay, NmCommandPaletteShortcuts, and the input layer NmUnifiedGestureDetector, NmHoverBuilder, NmCursorRegion, NmKeyboardShortcutWrapper, NmArrowKeyNavigator, NmShortcutKeys, NmInputAdapter, NmTouchAdapter, NmMouseAdapter, NmTrackpadAdapter, NmGestureType (the recognizers, gesture settings and input mode stay).
  • Removed 13 unused strings of NmLocalizations: actionSearch, actionOpen, actionMore, actionRefresh, labelSettings, labelUnknown, tableColumns, themeTitle, themeLight, themeDark, themeSystem, stateSaved, legendTitle.
  • Requires nativemind_icons_fugue ^0.2.0 (dev): camera, clipboard-paste, image are only in core now.

0.1.2 (not published on pub.dev; included in 1.0.0) #

  • NmAdaptiveScaffold: the phone drawer and the agent end drawer keep to the safe area. The drawer header was drawn under the status bar.

0.1.1 #

  • Three more essential icons for the copilot's composer: image, camera and clipboard-paste (both variants, 1x / 2x / 3x). They are still in nativemind_icons_fugue too.

0.1.0 #

The light base of the NativeMind widgets, split out of nativemind_widgets (it keeps re-exporting everything here).

  • Everything from widgets' core: theme and tokens, primitives, composites, tables, navigation, charts, input, panels, the command palette, voice gesture, l10n infrastructure, the icon API and catalogues.
  • Icons: only the 72 essential Fugue icons (≈ 0.9 MB, both variants, 1x / 2x / 3x). They are the icons core and nativemind_copilot use. Other Fugue icons come from nativemind_icons_fugue. A missing icon shows an empty 16 px box plus one debug message, never an error. NmIconAssets says which package holds what.
  • No plugins:
    • NmPrefsStore.fallback (in memory by default) is the store of NmTableController, NmSidebarController and NmLocaleController when none is passed. It is read at the time of use;
    • NmPrefs on shared_preferences and the feature tour stay in nativemind_widgets.
  • Languages: the base five (en, ru, th, hi, zh). NmLocaleRegistry lets nativemind_translations add more; NmL10n.supportedLocales includes them.
0
likes
0
points
510
downloads

Publisher

verified publisherframework.nativemind.net

Weekly Downloads

The light base of the NativeMind widgets: design tokens, theme, editions from configuration, primitives, PIN keypad, navigation, charts, l10n and icons. No plugins.

Repository (GitLab)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_localizations, flutter_svg, intl

More

Packages that depend on nativemind_core