nativemind_core 1.8.0
nativemind_core: ^1.8.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.8.0 #
Additive (SDD consilium.nativemind.net flows/sdd-konsilium-extract-to-framework, wave 6). Nothing of 1.7.x changes its
look, signature or behaviour, and there are no new strings (nativemind_translations subclasses NmLocalizations).
NmMiniAppHost.nativeOpenLink(void Function(String url)?, default null): howNmMiniAppHost.openLinkopens a link off the web, where there is no messenger bridge. Core stays plugin-free, so the app plugs in its launcher once at start, e.g.NmMiniAppHost.nativeOpenLink = (u) => launchUrl(Uri.parse(u), mode: LaunchMode.externalApplication);. While it is null,openLinkstays a no-op there, as in 1.7.x; on the web nothing changes (Telegram: t.me natively, other links in the in-app browser; a browser tab: a new window, synchronously in the tap handler). Lets an app callNmMiniAppHost.openLinkeverywhere instead of keeping its own Telegram / Max adapter (the Konsilium app'slib/api/telegram.dart).
1.7.0 #
Additive (SDD consilium.nativemind.net flows/sdd-consilium-design-oauth: the OAuth consent page on phones). Nothing of
1.6.x changes its look, signature or behaviour, and there are no new strings (nativemind_translations subclasses
NmLocalizations).
NmStickyActionBar({required children, flex, maxWidth = 440, gap = 10, safeArea = true}): the bottom action bar of a narrow screen (e.g. Deny / Allow): a row of actions with optional flex shares, centred and limited tomaxWidth, on a translucent surface with a hairline on top, padded by the bottom system inset. Used bynativemind_copilot1.4.0 (NmOAuthConsent(stickyActions: true)).
1.6.0 #
Additive (SDD dropexpired.net flows/sdd-dropexpired-nativemind-framework). Nothing of 1.5.x changes its look, signature or behaviour, and there are no new strings. Five of
Eugene Tretiakov's buttons — NmMediumActionButton, NmMediumIconActionButton, NmWideActionButton,
NmWideActionButtonNoIcon, NmMediumActionButtonRed — keep their positional constructors and take optional named
parameters (>>> generated blocks with // was: in the carried file); the defaults keep today's look and widget tree:
disabled(false): dimmed (opacity .45), taps ignored (no hover / pressed state),Semantics(button: true, enabled: false).busy(false): a small progress indicator of the label's size in the label colour in place of the label; taps ignored.tooltip(null): the button inside aTooltip(message: …).themed(false): colours of the app theme (context.nm) instead of DealApp's fixed palette, as theNmButtonprimary:ctaGradientin the expressive style, else the solidprimaryFill(label size), text / icononBrand; the red button fillsdangerwith white text (black where white has less than 3:1).natural(false): as wide as the content plus horizontal padding instead of the column / window share; the height stays.key: optional on these five.NmWideActionButton.widget(iconWidget, func, text, {…})andNmMediumIconActionButton.widget(…): any icon widget (e.g. a FugueNmIcon(NmFugue.plus)) in place of the MaterialIconData, centred in the same 32 px slot; a widget that readsIconTheme(MaterialIcon) gets the icon colour (onBrandwhenthemed),NmIconkeeps its own colours. The positional constructors are unchanged (iconWidgetnull).
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 compactfcodec,odataFilter/combine/filterExpression, and value equality. Carried from the LienDeed Pro app.NmUpdateLevel(none,available,required),nmCompareVersionsandnmUpdateLevel(current, {minimum, latest}).nmThemeCss(theme, {extra, header}): the theme tokens as CSS custom properties (light, dark from the system, anddata-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).
homepageremoved: widgets.nativemind.net is not online;repositorystays.
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; elsewherenoneand 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 aBuildContext(undo toasts withaction).NmSubmitOnEnter(Ctrl/⌘+Enter always, Enter on desktop or withenterSends),NmStarRating(48 px targets, read-only withoutonChanged),nmConfirmSheet(bottom sheet, true only on the action),NmTranslatableText(translation ↔ original toggle, labels from the app),NmLanguageLevelsEditor+NmLanguageLevel.NmAsyncSection.reloadable: the builder gets areloadcallback; 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.fontFamilyandNmTheme.fontFamilyFallback(replacesNmTheme.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 withoutonTap. The internalNmTapis unchanged.NmAsyncSection(both constructors):loadingBuilderanderrorBuilder(context, error, retry)(the raw error;describeErrorstill decides what is rethrown). Null = the current loading / error UI.NmErrorState:icon(null = the red exclamation) andactions(extra buttons under the retry button; empty = none).NmScaledBox.scaleMediaQuery(default false): the child sees the scaled box as its MediaQuerysizeand thepadding/viewPadding/viewInsetsdivided by the scale.NmNavDestination.semanticLabel;NmBottomNavBarbackground,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"), andNmTokenButton.tinted(brand-tint fill, brand text;variantreportsghost—NmTokenButtonVariantgets no new value, so exhaustive switches of 1.3.x consumers keep compiling).NmPill:radius(null = round) anddense(8 × 2 padding).NmFilterChip:dense(a 34 px borderless pill, radius 17, on the sunken surface inside a 44 px tap area) andbackground(the fill when not selected).NmSegmentedControl:stacked(the glyph above a small 11 px label; null = the row),stackBelowWidth(withstackednull, stack while the window is narrower) andminHeight(e.g. 48, content centred);NmSegment.badge(a smallNmBadgeafter the bare label — on the glyph when stacked — instead of the "Label 3" text ofcount; 0 hides it; drawn only byNmSegmentedControl).NmPageScroll:centered(default false — the max-width column in the middle of a wider window) andbottomPadding(null = twicegapXl).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),iconandradius(null = round ends).
Accessibility changes of existing widgets (at rest they paint exactly as before):
NmTokenButtontakes 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.NmBottomNavBarand theNmSidebaritems announce the badge count: "Inbox, 3" (the sidebar keeps the count label first: ".com, 4,912, 3");semanticLabelreplaces 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 fixedheight,busydots. For NativeMind DS products; Eugene Tretiakov's handmade family stays the DealApp button.NmAppMark: a product mark — one letter (ConsiliumC, JobsJ) 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;nmScoreTonetakes an optionallowtone (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:
repositoryfield 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,nmYesNoDialogDelayedand theNmTimerButtonseconds unit read 9 newNmLocalizationsstrings (dialogFailedTitle,dialogSuccessTitle,dialogClose,dialogDone,dialogCancel,dialogChoose,dialogYes,dialogNo,dialogSecondsShort) in en / ru / zh / hi / th. WithNmL10n.delegateregistered 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,noButtonTextare nowString?; 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) andstrings(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 (
DealTapof the DealApp web client); at rest they paint exactly as before. - All changes inside the handmade bodies are
>>> generatedblocks with the replaced lines kept as// was:(PROVENANCE.md);handmade-src/tools/verify_eugene.pyrestores 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})readspackages/<package>/assets/lang/<code>.json(default packagenativemind_vpn,package: null= the app's ownassets/lang/; English file when the language file is missing),to(key)returns the string ([key]when missing),currentLocale(English beforeload). It is localization infrastructure, so it lives here:nativemind_vpnuses it withoutnativemind_translations(and so withoutnativemind_copilotand its plugin).nativemind_translations1.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*, pluspalette).NmConfig.resolve= forces → saved → defaults → first; the edition comes from--dart-define=NM_EDITION=<id>(NM_EDITION_OSoverrides the platform). An edition missing on one platform falls back to another; editions withoutforecolor*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 tokensNmColorsRes/nmColorsRes(isManpalettes),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, andNmTimerButton. 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/pinkandNmPalette.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 staynativeMind*, saved settings keep working).
Breaking
NmSurface(visibility matrix column) is renamedNmVisibilitySurface(it clashed with copilot'sNmSurface).NmSvgIcons(flags, payment, apps) andNmCustomIcons(telecom) moved tonativemind_widgets— their assets were always there;nativemind_widgetsexports them as before. Flags/apps go tonativemind_vpnin 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 layerNmUnifiedGestureDetector,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,imageare 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,cameraandclipboard-paste(both variants, 1x / 2x / 3x). They are still innativemind_icons_fuguetoo.
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_copilotuse. Other Fugue icons come fromnativemind_icons_fugue. A missing icon shows an empty 16 px box plus one debug message, never an error.NmIconAssetssays which package holds what. - No plugins:
NmPrefsStore.fallback(in memory by default) is the store ofNmTableController,NmSidebarControllerandNmLocaleControllerwhen none is passed. It is read at the time of use;NmPrefson shared_preferences and the feature tour stay innativemind_widgets.
- Languages: the base five (en, ru, th, hi, zh).
NmLocaleRegistryletsnativemind_translationsadd more;NmL10n.supportedLocalesincludes them.