magic_starter 1.3.1
magic_starter: ^1.3.1 copied to clipboard
Ready-made Magic screens for sign-in, profile, teams, notifications, billing and support chat, each one overridable from your app through a view registry.
Changelog #
All notable changes to this project will be documented in this file.
[Unreleased] #
1.3.1 - 2026-11-16 #
Fixed #
- The newsletter label on the register screen wraps instead of overflowing. The checkbox sat in a row that gave it an unbounded width and the label was not flexible, so a label wider than a phone (the Turkish "Ürün güncellemelerine ve haberlere abone ol" at 390 px, or a longer
MagicStarter.useNewsletterLabeltext) ran 5 px past the card edge, was clipped and raised aRenderFlex overflowederror. The label isFlexibleinside a bounded box now, so it breaks onto a second line. (lib/src/ui/views/auth/magic_starter_register_view.dart)
1.3.0 - 2026-11-16 #
Added #
MagicStarterPasswordToggle, the show-or-hide eye for a password field. Pass it as aWFormInputsuffixwithobscuredandonToggle. It carries the name frommagicStarterPasswordToggleNameand a 44 px box belowlg(40 px fromlgup) around the 20 px glyph. A published view uses it through the barrel. (lib/src/ui/widgets/magic_starter_password_toggle.dart)
Fixed #
- The password eyes are no longer 20 px tap targets. Every eye (the login, register, reset, change-password and profile views and the password confirm dialog) was a bare
WAnchoraround the icon, so the tappable area and the node a tap-target audit measures were 20 by 20. They all useMagicStarterPasswordTogglenow, so each is at least 44 px square belowlgand 40 px fromlgup. A field with an eye is as tall as that box: 44 px belowlg, 40 px fromlgup, which is a few pixels taller than a plain field of the default form theme. Fixes #276. (lib/src/ui/views/,lib/src/ui/widgets/magic_starter_password_confirm_dialog.dart) - The password eyes on the profile screens are named for screen readers. The seven show-or-hide toggles on the settings view (current, new and confirmation password, and the two guest upgrade fields) and the guest upgrade fields on the profile sub-page were bare icons, read as an unlabelled button; each now carries
magicStarterPasswordToggleName, which flips between "Show password" and "Hide password" with the field. No new keys: the helper falls back to English. (lib/src/ui/views/profile/) - Every icon-only control name goes through
magicStarterControlName. The app layout, the team selector and the account dropdown each carried their own copy of the "catalogue line or English default" check, and three labels calledtrans()with no fallback: the dropdown's "Toggle theme" row and the collapsible sidebar's expand and collapse control, so a host installed before those keys existed showed the raw key. They read "Toggle theme", "Expand sidebar" and "Collapse sidebar" now when the catalogue lacks the key. (lib/src/ui/layouts/magic_starter_app_layout.dart,lib/src/ui/components/)
1.2.0 - 2026-11-16 #
Added #
magicStarterControlNameandmagicStarterPasswordToggleNamename an icon-only control for a screen reader.magicStarterControlName(key, fallback)answers the translation ofkeywhen the app's language files hold it andfallbackotherwise, so a host that has not added the key reads an English name, never the raw key.magicStarterPasswordToggleName(obscured:)answersauth.show_passwordwhile the field is hidden andauth.hide_passwordwhile it is shown, each with an English default. Both are exported from the barrel so a published view and a host screen can use them. (lib/src/support/control_name.dart)
Fixed #
- The icon-only controls on the auth screens are named for screen readers. The theme toggle on the auth form card and the show-or-hide eye on every password field (login, register, reset password, the password settings page and the password confirmation dialog) had no accessible name and read as an unlabelled button. The toggle takes
common.toggle_theme; the eye takesauth.show_passwordorauth.hide_password, naming the action its next tap performs, so the label flips with the field. Both new keys ship in the install stub; an app installed before them gets the English names, never the raw keys, until it adds them to its own language files. (lib/src/ui/widgets/magic_starter_auth_form_card.dart,lib/src/ui/views/auth/,lib/src/ui/views/settings/security/magic_starter_password_view.dart,lib/src/ui/widgets/magic_starter_password_confirm_dialog.dart)
1.1.2 - 2026-11-16 #
Changed #
starter:install --features=...no longer skips an existing config in silence.plugin:installchainsstarter:install --non-interactive, which writeslib/config/magic_starter.dartwith every feature off, and a laterstarter:install --features=teamsthen skipped the config that existed by then and still reported success, so the features stayed off. When the explicit--featuresselection differs from the flags in the existing config, the command now leaves the file alone, prints the features whose setting differs and the way out (commit, then pass--forceto rewrite the config from the list, which also replaces the generated files,AppServiceProviderincluded;starter:configureonly for a feature that needs no scaffolding, which teams does not), and exits1. A selection the config already holds still succeeds (a re-run is idempotent),--forcestill rewrites the config, and a run without--featureskeeps leaving an existing config alone. A script that ranstarter:install --features=...on top of an existing config and read exit0as applied now gets exit1. (lib/src/cli/commands/magic_starter_install_command.dart,install.yaml,README.md,llms.txt,skills/magic-starter/SKILL.md,doc/getting-started/installation.md)
1.1.1 - 2026-11-16 #
Fixed #
MSSegmentedControltells a screen reader which segment is selected. Theselected:look was painted only, so "Monthly" and "Annual" read alike whichever one was chosen. Each segment now carriesSemantics(selected:)on its own button node (merged, so the node's name is still the label), true for the one atselectedIndexand false for the rest, including aselectedIndexthat names no segment. Nothing changes visually or in the layout. (lib/src/ui/components/segmented_control/segmented_control.dart)
1.1.0 - 2026-11-15 #
Added #
- Every theme sub-theme has a
copyWith, and the layout theme resolves its backgrounds.MagicStarterNavigationTheme,MagicStarterCardTheme,MagicStarterPageHeaderTheme,MagicStarterLayoutTheme,MagicStarterAuthTheme,MagicStarterDropdownTheme,MagicStarterButtonThemeandMagicStarterFieldThemejoin the form and modal themes, so a one-field override keeps the rest:MagicStarter.useLayoutTheme(MagicStarter.layoutTheme.copyWith(navigationBreakpoint: 'sm')).MagicStarterLayoutTheme.contentBackgroundColor(context)anddrawerBackgroundColor(context)resolve the two background pairs for the current brightness and accept a#hexin either half; both layouts paint through them. (lib/src/configuration/magic_starter_theme.dart,lib/src/ui/layouts/)
Changed #
- The barrel exports what a publishable view or layout reads:
NavigatesRoutesandMagicStarterNextPath(the login and register views),MagicStarterBreakpoints(the app layout),confirmAndDeleteAccount(the profile view) andMSConfirmDialog(the billing view). A published copy reaches them without importing fromsrc/. (lib/magic_starter.dart)
Fixed #
- The platform statement says what pub.dev lists. The README and
llms.txtclaimed every platform Flutter andmagicrun on; pana's static import-graph check lists Android and iOS only (it drops Windows and Linux atpurchases_flutterthroughmagic_payments, macOS aturl_launcher_windowsand the web atpath_provider), and the text now says so. The skill's backend-contract reference gains the map from each Flutter feature key to the backend feature name, and marksregistration,store_reviewandsupport_chatas having no backend toggle (app_updatehas none either, but its store banner needs the backendreleasesfeature). The dependency comments inpubspec.yamldescribe the 1.x floors instead of the 0.x history. (README.md,llms.txt,skills/magic-starter/references/backend-contract.md,pubspec.yaml) - The config that
starter:publish --tag=configcopies turns every feature off. The publishedlib/config/magic_starter.dartswitchedregistration,extended_profile,social_loginandnotificationson, while the documentation says every feature defaults tofalseand a screen appears only when its toggle is on. All four arefalsenow, so a fresh publish shows no screen the app did not enable. An app that already published the file keeps its own values. (lib/config/magic_starter.dart) useWindTheme()no longer discards sub-theme fields a host set before it, and it now themes the drawer and content backgrounds. The derived values land only on fields the host has not set: a field is the host's when it differs from its sub-theme's default and from what the previoususeWindTheme()derived, souseLayoutTheme(),useNavigationTheme()and the other setters called before it keep their fields. A setter called after it still assigns its whole struct, so build that struct withcopyWithon the active theme. A field set to exactly its stock default, or to exactly what the previoususeWindTheme()derived for it, reads as unset, and the nextuseWindTheme()replaces it; to keep such a value, set a different one, or set it again afteruseWindTheme()withcopyWith. A layout background's colour and shade count as one field, a host value stays the host's when a later palette derives the same value, and the drawer and content backgrounds follow the lastbg-utility of each brightness inbg-surface, as Wind paints it. This changes one documented behaviour: a button or field theme set beforeuseWindTheme()is now kept rather than reset.useTheme()still replaces every sub-theme. The drawer and content area backgrounds now follow the theme'sbg-surfacerole instead of staying stock grey. (#149;lib/src/magic_starter_manager.dart,lib/src/facades/magic_starter.dart,lib/src/configuration/magic_starter_theme.dart)- The documentation now matches what the package does. An unset or empty
billing.web_originhides the web checkout button; a relative value reaches Stripe, which refuses it, and the error is only logged; the origin must be absolute. With both identity modes on, login and registration send every non-empty identity field rather than preferring the phone.plugin:installinjects(app) => MagicStarterServiceProvider(app),. A disabled feature's path hits the router's not-found handling instead of throwing; onlyMagicStarter.view.makethrows. The middlewarestarter:installwrites records no intended URL and does not let a guest through; the package classes do. The login sample saysmagic-starter-laravelup to 0.0.64 ignoresremember_me, and the controller's doc comments say every non-empty identity field is sent. The README names theMagicStarterBillingControllerregistration, links the agent skill on GitHub, anddoc/basics/components.mddocumentspackage:magic_starter/previews.dart. (README.md,llms.txt,doc/,skills/magic-starter/) - The compact sidebar rail and the icon-only shell controls are named for screen readers. A compact rail item announces its destination (with its badge count). The phone header's menu button, the drawer's close button, the notification bell, the account avatar and the compact rail's team switcher (which also carries the team's name) take names from the new
nav.open_menu,nav.close_menu,nav.notifications,nav.account_menuandnav.team_menukeys in the install stub, falling back to English rather than the raw key when an app's language files lack them. (#150;lib/src/ui/layouts/magic_starter_app_layout.dart,lib/src/ui/components/user_profile_dropdown/user_profile_dropdown.dart,lib/src/ui/components/team_selector/team_selector.dart,assets/stubs/install/en.stub) - A view or layout published with
starter:publishcompiles in your app. The command copied the file byte for byte, so its relative imports ('../../../configuration/magic_starter_config.dart') pointed at paths that do not exist underlib/resources/, and every published view and layout failed to compile. The registration it added toAppServiceProviderbroke the app as well: the provider imports the package barrel, which exports the original class under the same name, so the call was an ambiguous import. A published file's relative imports now becomeimport 'package:magic_starter/magic_starter.dart';where the barrel covers the target and apackage:magic_starter/src/...URI where it does not (only the support screens' helper widgets, which the unscopedviewstag publishes), and the registration imports your copyas published. If an earlier publish left an unprefixed registration inAppServiceProvider, delete that import and itsregisterorregisterLayoutline and publish again with--force. (lib/src/cli/commands/magic_starter_publish_command.dart)
1.0.0 - 2026-11-14 #
BREAKING #
- The CLI moved from
fluttersdk_artisantodowel. The provider is renamed toMagicStarterDowelProvider(lib/src/cli/starter_dowel_provider.dart, exported frompackage:magic_starter/cli.dart); re-rundart run magic:dowel plugin:install magic_starterto register it under.dowel/. The commands are run asdart run magic:dowel starter:<command>, and the read-onlystarter_doctorMCP tool routes throughdowel:starter:doctor. (lib/src/cli/,lib/cli.dart,install.yaml) - Wind moved to
wind_kitand Material tomaterial_ui.fluttersdk_windis replaced bywind_kit ^1.12.0, and every Material import now comes frompackage:material_ui/material_ui.dart, whichmaterial_ui ^1.11.0provides.starter:installwrites thematerial_uiimport into a host'smain.dartandAppServiceProvider, swaps a host'spackage:flutter/material.dartimport in those files for it (both defineMaterialColorandColors, so keeping the two would make the generated theme ambiguous), and addsmaterial_ui ^1.11.0to the host'spubspec.yaml. The SDK floor is Dart 3.13 and Flutter 3.47. (pubspec.yaml,lib/,assets/stubs/install/)
Changed #
- First stable release: version 1.0.0 replaces the planned 0.1.0 and requires
magic ^1.0.0anddowel ^1.0.0; no API change beyond what is listed below. - Now depends on
magic ^1.0.0,magic_pickerandmagic_socket.Pick(attachments, profile photo) comes frompackage:magic_picker/magic_picker.dartandBroadcastListeners(support sync) frompackage:magic_socket/magic_socket.dart, since core 1.0.0 no longer ships either. (pubspec.yaml,lib/src/support/support_sync.dart,lib/src/ui/views/support/magic_starter_support_attachments.dart,lib/src/ui/views/profile/) - The package page and every documentation link name the new location under
https://anilcancakir.com/magic/starter. (pubspec.yaml,README.md,llms.txt,doc/,skills/,tool/check-docs.py) - Package metadata names the new owner. The pub.dev description is rewritten, and the homepage, repository and issue tracker point at
anilcancakir. (pubspec.yaml) starter:configureaccepts--no-<feature>on a real command line. dowel registers a signature flag as non-negatable, so--no-teams(the form the usage and the docs show) was rejected with "Could not find an option named"; the command now registers the eight feature flags as negatable. (lib/src/cli/commands/magic_starter_configure_command.dart)- Direct dependencies raised to the latest release.
path ^1.9.1,web ^1.1.2and devtest ^1.32.0. (pubspec.yaml) - The dashboard
starter:installscaffolds links to the current Magic pages. Its Documentation, GitHub and CLI Commands cards openhttps://anilcancakir.com/magic/docs/getting-started/installation,https://github.com/anilcancakir/magicandhttps://anilcancakir.com/magic/docs/packages/magic-cli, and the CLI card namesdart run magic:dowel list. (assets/stubs/install/dashboard_view.stub) - The
plugin:installmessage says what the chainedstarter:installreally does. The chain runs non-interactively and writes every featurefalse, and a laterstarter:install --features=...skips the config file that exists by then unless--forceis passed; the message now points atstarter:configureor--no-bootstrap. (install.yaml) starter:installnames the right command when the host is not a Magic app. The error says to rundart run magic:dowel magic:install, notmagic install. (lib/src/cli/commands/magic_starter_install_command.dart)
Older releases #
Releases 0.0.73 and older are in CHANGELOG-ARCHIVE.md.