Skip to main content

fast_sea 0.9.7 copy "fast_sea: ^0.9.7" to clipboard
fast_sea: ^0.9.7 copied to clipboard

PlatformAndroid

A Flutter UI library built on liquid_glass_widgets & GetX, providing Sea-prefixed reusable components: glass cards, buttons, toast, loading, refresh lists, ads, and more.

0.9.7 #

๐Ÿ“– Ready-made pages, guide and splash #

  • SeaGuidePage is the shared usage/FAQ page: SeaGuideStep rows, FAQ tiles via SeaGlassExpansionTile, 51 built-in guide_* locales and optional steps / faqs / extraSteps / extraFaqs. showUsage / showFaq hide a section; useBuiltInContent: false drops the common copy entirely. The FAQ section no longer sits inside a second SeaGlassSection glass layer.
  • The help entry lives in the settings page's top-right corner via SeaGlassSettingsPage.helpAction(context); home pages no longer carry a ?.
  • SeaSplashPage shows the configured app icon on white at 80% of the short edge, waits minDuration (default 700 ms) and replaces itself with next. No app-open ad, no spinner.
  • SeaLanSharePage and SeaLanShareSettingsTiles.buildSection(context) are the ready-made LAN UI: live URL, password, exposed folders and QR card. Both accept a qrBuilder override.

๐ŸŒ LAN sharing and built-in QR #

  • SeaLanShare is a generic LAN HTTP server: configure once (appId, storageKey, port, a directories callback, title) and call load() after SeaApp is ready. enabled / url / port / password / failure are value notifiers; setEnabled, setPort and setPassword persist state. Password changes invalidate every cookie session.
  • SeaLanSharePort keeps iDownload (24680) and iShare (38767) fixed and hashes other app ids into a non-colliding 40000โ€“40999 port.
  • SeaQrBuilder.build(url, {size: 180}) is built in (qr_flutter), so hosts no longer ship their own QrImageView call. SeaQrCodeCard still forces the white card and quiet zone cameras need.

๐Ÿ—„ Local database and determinate progress #

  • SeaDatabase wraps sqflite; files land at <cache>/sea/<name>/db/<name>.db. open / pathFor / deleteDatabaseFile plus insert / query / update / deleteRows / transaction / count; db remains available for raw SQL.
  • Sea.loading.progressTask() (and the flat seaProgressTask()) draws a global determinate HUD from ValueListenable<double> progress and an optional ValueListenable<String> phase, with phaseText, message, onCancel and cancelLabel. It shares the clear-mask barrier and nesting count of task(). The top-level Sea.progressTask / Sea.loadingTask are deprecated.

๐Ÿ“Š Firebase: Crashlytics on by default #

  • SeaFirebaseConfig.crashlytics and .crashlyticsCollectionEnabled both default to true. Passing Firebase options to SeaApp now also installs the Flutter error forwarder through SeaLog; no app-side FlutterError.onError is needed.
  • Sea.crashlytics exposes recordError, log, setUserIdentifier, setCustomKey, didCrashOnPreviousExecution, isInitialized and instance. SeaAnalyticsRouteObserver is attached unconditionally and forwards events lazily once Firebase is live, so the first page is not lost.

๐Ÿซง Glass and interaction polish #

  • SeaGlassConfig.quality defaults to GlassQuality.minimal and is written once to SeaGlassTheme.globalQuality for every surface. Apps may opt into standard / premium; null restores adaptive quality (not recommended). Theme changes suspend adaptive measurement for 600 ms so a repaint cannot permanently downgrade the app.
  • SeaGlassSegmentedControl switches past four labels to scrolling glass blocks (asBlocks, hasMoreTabs, onLoadMoreTabs, loadMoreThreshold, height); selection tints the block instead of filling it.
  • SeaGlassSelectionSheet supports onLoadPrevious, startIndex and a jumpTo listenable that scrolls by global index; single-select showSingle(closeOnSelection: true) pops as soon as a row is tapped.
  • Bottom sheets use useSafeArea: true on iOS, keeping the card clear of the Home Indicator; SeaGlassSheetScaffold no longer adds a second bottom safe area. Dialog titles accept a custom colour and actions put the primary operation above Cancel.
  • SeaGlassSettingsPage gains actions, buildCoreSections, translucentIcons, leading and a banner slot; SeaFileManagerPage gains browseRoot (folder drill-down + breadcrumbs), search and richer SeaFileEntry fields (isDirectory, folderCount, fileCount, totalBytes). Capsule field height is unified at 46 pt.

๐Ÿ“ Files and configuration #

  • Sea.file.saveToDownloads(subFolder:) writes into Download/<downloadsFolderName>/<subFolder>/; the sub-folder is cleaned of leading/trailing slashes and ... SeaFile.downloadsAppFolder is now a getter backed by SeaFileConfig.downloadsFolderName (default SeaFiles).
  • The remote document is bundled with the package. No fetch, ETag or refresh(); SeaApp(remoteConfigAsset:) is an override for apps that truly need a different file. SeaAdsConfig.removeAds defaults to kDebugMode.
  • A no-op Android plugin makes fast_sea's manifest strip the transitively declared READ_MEDIA_* permissions during manifest merge.

๐Ÿ“š Documentation #

  • README resynced to the shipped code: version 0.9.7, liquid_glass_widgets ^1.16.1, new services/pages and their API examples, full API table rows, dependency table and the safe-area / quality / bundled-config rules.
  • doc/FILE_MODULE.md documents saveToDownloads(subFolder:) and SeaFileManagerPaths.

๐ŸŒˆ Four corners, not one diagonal #

  • SeaGlassBackground now defaults to four pastel stops plus a round glow dot in each corner โ€” light: teal, violet, sky, apricot; dark: teal, indigo, teal, violet. The ramp is a single LinearGradient and the dots are constants: no LayoutBuilder, no MediaQuery, no animation.
  • The dots are pre-rasterised CPU textures, not radial gradients. Impeller on Mali GPUs (Huawei/Honor devices) paints radial gradients with jagged debris โ€” along a clipped edge and inside the gradient itself; a texture sampled with drawImageRect is clean on every GPU. Each dot is rasterised once per colour at 256ยฒ with premultiplied alpha (straight alpha renders as bright blocks) and then cached app-wide.
  • glowBlobs: const [] still gives the bare gradient; lightGradient / darkGradient / glowBlobs keep working as before.

0.9.6 #

๐Ÿงฐ Three screens ship whole โ€” settings, file manager, QR #

  • SeaGlassSettingsPage is the settings screen every app rewrites: the Appearance section (language + theme, both already driven by the app-wide controllers) and the More section (website + about, fed from SeaAppInfoConfig) come built in, and the app's own groups go on top as appSpecificSections. There is deliberately no "rate us" row โ€” rating is a launch-time prompt now, so a settings screen carries no tap that lands on a store page. The sections are also exposed as static builders (buildAppearanceSection / buildStorageSection / buildMoreSection) for an app that owns its own SeaPage.
  • SeaFileManagerPage browses the directories the app itself owns: scan once, page in memory (pageSize), a live total-size row, and the filters people actually use โ€” including large, every file ordered by size, the view that answers "what is eating my storage". Tap a row for open ยท share ยท save to Downloads ยท delete; long-press for selection mode. Delete asks first, with the count and total size, so the page is safe to hand to a user.
  • SeaQrCodeCard frames a QR widget you generate yourself on the white card a camera needs โ€” a dark-mode code is light-on-dark and many scanners refuse to lock onto it.

๐Ÿ“ข One ad policy, one banner slot #

  • SeaAdsWidget.banner() and SeaAdsWidget.showInterstitial() are the two calls a page makes, and both read the policy instead of taking knobs. banner() collapses to zero height whenever there is nothing to show โ€” unconfigured, premium, switched off remotely, no fill, still loading โ€” and applies its margin only once an ad is really on screen, so a caller never wraps it in Padding that outlives the ad.
  • showInterstitial calls onClosed exactly once โ€” ad watched, no fill, premium, SDK not ready, cooling down, over the daily cap. Callers put "what happens after the ad" there (iDownload starts its LAN server that way), and an early return that skipped the callback would mean that work never runs.
  • The page banner slot is the only banner. SeaAppPage and SeaGlassSettingsPage reserve it and fill it themselves (bannerSize: AdSize.banner by default, null to disable, an explicit banner: wins). Two bugs it removes: adding SeaAdsWidget.banner() to children stacked a second ad under the slot, and passing a different bannerSize per page made one app mix 320ร—100 with 320ร—50.
  • SeaAdsPolicy is the merged result of the remote ads block and the adsConfig passed to SeaApp: per-format kill switches, daily caps, first-launch skips, and a cooldown that counts foreground time only โ€” so backgrounding the app pauses it and closing the app does not consume it.
  • SeaRouteAdsObserver is installed by SeaApp; one page push is one opportunity. It skips the first route (the home screen would otherwise be an app-open ad's second shot), ignores dialogs and bottom sheets, and counts fullscreenDialog routes.

๐Ÿ“ก Remote config drives ads, announcements, updates and the rating prompt #

One hosted JSON โ€” cached to local storage, re-fetched with an ETag, with a bundled asset fallback for first launch โ€” now decides five things an app normally hard-codes: the ad policy, announcements, the update gate, maintenance mode and feature flags.

  • Sea.remote (SeaRemoteConfigService) exposes the parsed document, launches and daysSinceInstall; Sea.hasRemoteConfig says whether SeaApp registered it. Field-by-field reference: doc/BUNDLED_CONFIG.md.

    Since 2026-11-10 this document is bundled with the app binary; the remote fetch, ETag cache, refresh() and featureBool/String/Number helpers were removed, and the hosted config/<app>/latest.json files were deleted. See doc/BUNDLED_CONFIG.md.

  • SeaMessageCenter shows version-gated, locale-aware announcements through the library's own glass dialog, with buttons that close, open an in-app webview, an external url, a store page or a deeplink. It returns whether it showed anything, which is what keeps a low-priority prompt from stacking on top of a message.
  • SeaRatingPrompt is the launch-time ask: count, last-prompt time and "already rated" live in local storage, thresholds and copy come from the rating block, and "Rate" tries the in-app sheet before falling back to the store โ€” every step with a timeout, because the review channel never answers on some ROMs.

๐Ÿ’พ Sea.file.saveToDownloads() โ€” into Download/ with no picker #

saveToDevice opens a picker (SAF / the Files app); the new call writes straight to the public Downloads through MediaStore and returns the display path โ€” /storage/emulated/0/Download/SeaFiles/report.pdf โ€” or null. On iOS, where there is no Downloads folder, it falls back to the save panel.

  • The source file survives. media_store_plus deletes the tempFilePath it is handed, so the library copies to a real temp file first and lets the plugin delete that. Passing the user's attachment straight in produced "saved successfully, then the message detail says the file is missing".
  • SeaFile.downloadsAppFolder lost its leading slash โ€” the plugin builds RELATIVE_PATH = "Download/" + appFolder, so '/SeaFiles' became Download//SeaFiles, which MediaProvider rejects; files landed in Download/(invalid)/SeaFiles/ on a real device.
  • SeaFileManagerPage's Save row, and iDownload's "Save to phone", go through this call and report the returned path in the toast.

๐Ÿ“„ A long sheet scrolls instead of overflowing #

SeaGlassSheetScaffold's content sits in a loose Flexible when fillHeight is false, not a fixed box: a list or a long column now gets a bounded height and scrolls inside the sheet, while short content still sizes the panel to itself. Before, a 12-row "max concurrent downloads" panel drew 53pt past the bottom edge and its last row was unreachable. (fillHeight: true still takes the rest of the sheet, which is what a selection list wants.)

๐Ÿ“š The README is the manual again #

Rewritten where it had drifted: a complete API table (~80 rows, every public class), the dependency table and floor resynced to the real pubspec.yaml (Flutter โ‰ฅ 3.41 / Dart ^3.11, liquid_glass_widgets 1.14), and new chapters for the ready-made pages, the ad policy and banner slot, remote config and saveToDownloads. Every Seaโ€ฆ identifier in it was checked against lib/; the five that no longer existed are gone.

๐ŸชŸ ๅˆ‡ไธป้ข˜ไธๅ†ๆŠŠ็Žป็’ƒ่ดจ้‡้™ไธ€ๆกฃ #

  • SeaThemeController ๅœจไธป้ข˜ๅ˜ๅŒ–ๆœŸ้—ดๆŒ‚่ตท GlassAdaptiveScope ็š„ๆต‹้‡ใ€‚ LiquidGlassWidgets.wrap(adaptiveQuality: true) ็š„ Phase 3 ๆ˜ฏๆŒ‰ P95 ๅˆคๅฎš็š„๏ผš ่ฟž็ปญไธคไธช็ช—ๅฃ่ถ…ๅ‡บๅธง้ข„็ฎ—ๅฐฑๆŠŠๅ…จๅฑ€็Žป็’ƒ่ดจ้‡้™ไธ€ๆกฃ๏ผˆpremium โ†’ standard๏ผ‰๏ผŒ่ฆๅ‡ๅ›žๆฅ ้œ€่ฆ่ฟž็ปญ 10 ไธช็ช—ๅฃ่พพๆ ‡ๅค–ๅŠ  8 ็ง’ๅ†ทๅดใ€‚ๅˆ‡ๆขๆ˜Žๆš—ไธป้ข˜ไผš่ฎฉๆ•ดๆฃตๆ ‘็š„็Žป็’ƒ้ขๆŒ‰ๆ–ฐๆธๅ˜ ้‡็ป˜๏ผˆๆจก็ณŠใ€้ฅฑๅ’Œๅบฆใ€ไบฎๅบฆๅ…จๆข๏ผ‰๏ผŒ้‚ฃไธ€ไธคๅธงๅฟ…็„ถ่ถ…ๆ ‡ โ€”โ€” ไบŽๆ˜ฏใ€Œๅˆ‡ไธชๆš—่‰ฒไธป้ข˜ใ€็œ‹่ตทๆฅ ๅฐฑๆ˜ฏใ€Œ็Žป็’ƒๅฟฝ็„ถๅ˜็ณŠใ€๏ผŒ่€Œไธ”่ฟ™ไธ€่ฝฎๅŸบๆœฌๅ›žไธๅŽปใ€‚็Žฐๅœจ themeMode ไธ€ๅ˜ๅฐฑ holdMeasurement()๏ผŒ600ms ๅŽๆ”พๅผ€๏ผŒ้€‚้…ๅ™จ้šๅŽ่ฟ˜ไผšๆŒ‰ settleFramesAfterHold ๅ†่ทณ่ฟ‡็บฆไธ€็ง’๏ผŒๅˆ‡ไธป้ข˜็š„้‚ฃไธ€ๆŠ–ไธๅ†่ฎกๅ…ฅ่ดจ้‡ๅˆคๅฎšใ€‚็›‘ๅฌ Rx ่€Œไธๆ˜ฏๅชๅŒ… setLight/setDark๏ผŒๆ‰€ไปฅ App ้‡Œ็›ดๆŽฅๅ†™ Sea.theme.themeMode.value = ... ็š„่ทฏๅพ„ๅŒๆ ท็”Ÿๆ•ˆใ€‚

๐Ÿ• Log lines carry the date, and iShare now logs through SeaLog #

  • Every line opens with [2026-10-08 23:41:02.318]. The millisecond clock was already there; the date is new and on by default โ€” a log that runs overnight is otherwise a pile of times with no day attached. SeaLogPrinter(showDate: false) gets the clock-only form back, showTime: false drops the stamp entirely. SeaLogEntry.formatDate is the same formatter, for the debug page.
  • iShare's logger is now a thin shell over SeaLog. It used to print() bare lines with no clock and no level marker; it now delegates to seaLogd/i/w/e/f, so every line reads [15:02:01.792][E] [iShare/discovery] boom โ€” Bad state: bad. The app-side API (IShareLogger.forCategory, debugEnabled, the general instance) is unchanged โ€” 269 call sites keep compiling. Its logLevel moved from error to debug, otherwise the new info/warn lines would be swallowed by SeaLog's level gate; the debug-only build flag still holds the volume down.

๐Ÿ”‡ Taps don't buzz โ€” haptics are off by default #

A tap on a page, a dialog or a tab must not vibrate. Everything that could buzz is now behind one switch that ships off, and nothing can bypass it.

  • SeaHaptics.enabled defaults to false. Sea.haptics.enabled = true opts the whole app back in; while false, every method returns before touching the platform channel. This also silences app code that calls Sea.haptics.selection() (e.g. a tab handler) without editing the app.
  • No widget calls HapticFeedback directly any more. SeaGlassFAB, SeaGlassRating, SeaGlassToggleGroup, SeaGlassExpansionTile and SeaGlassColorPicker ticked through HapticFeedback.lightImpact() straight from their gesture handlers; they now go through SeaHaptics.light(), so the master switch governs them. A guard test fails if a direct call ever comes back.
  • Sheets are quiet on tap. The vendor couples the tap haptic to enableInteractionGlow โ€” the same flag that draws the finger-following specular glint โ€” and defaults it to true, which is why every dialog tapped once. SeaGlassSheet, SeaGlassModalSheet, showSeaGlassSheet and showSeaGlassModalSheet now pass enableInteractionGlow: false (opt back in per call). The saturation pulse is a separate vendor flag and stays on, so touch feedback does not go silent with it.

Tests: test/sea_haptics_test.dart (default off, the switch really gates the platform channel, Sea.haptics is the same switch) and test/sea_glass_sheet_haptics_test.dart (no direct HapticFeedback under lib/, wrappers default the flag off, a real tap on a real vendor sheet produces no platform call โ€” with an opt-in control group proving the tap path is wired).

๐Ÿ”ฅ SeaApp can take the FlutterFire options โ€” and a callback to go with them #

  • SeaFirebaseConfig.options accepts DefaultFirebaseOptions.currentPlatform. SeaApp then calls Firebase.initializeApp(options: โ€ฆ) itself, so a FlutterFire-generated project no longer has to initialise Firebase before runApp. Init routes, in order: a pre-built app is reused; otherwise options; otherwise Firebase resolves the native config files.
  • SeaFirebaseConfig.onAppReady โ€” a callback method invoked with the live FirebaseApp, and awaited, so Sea.servicesReady does not complete while a handler is still bringing messaging / remote config up. It may be async; onReady (VoidCallback) still fires afterwards.
  • SeaAnalytics is bound to the app that was actually resolved, so a named app reports against itself rather than the default app.

0.9.5 #

๐ŸŽฏ One selection row, one selection control โ€” iOS 27 #

Single- and multi-select sheets now draw the same row, and that row carries one selection signal.

  • The trailing mark is iOS 27: a circle for single-select, a rounded square for multi-select (SeaSelectionMark + SeaSelectionShape). Outlined and hollow when unselected, filled with the primary colour and a white checkmark when selected. The shape is what tells the reader whether they are choosing one or several; the slot is identical (22pt, same right edge) in both modes and in both states, and it is always drawn โ€” so every row keeps the same width for its label. Previously single-select drew nothing at all until a row was selected, so the two sheets had different row geometry and the whole column of labels shifted when switching modes.
  • A selected row is one thing said three ways: the label turns primary, the row fills with primary at 1/5, and the trailing mark fills. What it does not do is draw a border โ€” a border is a louder signal than the fill and it competes with the mark. SeaGlassSheetActionTile therefore takes a selectedFill: supply one and the default fill-plus-border is replaced by that fill alone. The label stays regular.
  • Fixed: a row blinks when it is picked. The unselected frame used Colors.transparent, which is black at alpha 0 โ€” interpolating it against the primary fill produces half-transparent dark mid-frames, so the row visibly darkened for a moment (and the glass layer re-sampled behind it). The idle frame is now the same colour at alpha 0, so the animation only moves alpha and never shifts hue. Any Animated* colour that fades to Colors.transparent has this bug.
  • Dialog metrics come from the tokens, not from ad-hoc numbers. The sheet header used to carry 16/4/12/14/60/48/40 as literals; they are SeaSpacing and SeaSizes now (control 44 for the header row, barButton 34 for the corner buttons, and reserves derived from them), which is what makes every sheet in the family measure the same instead of drifting one literal at a time. The alert was already token-driven โ€” 270pt wide, xl/lg insets, title3 + subheadline.
  • Selection rows are wider, and line up with the bottom button. The list added its own lg gutter on top of the scaffold's, so every row sat 16pt inside the button. The scaffold gained contentInset (selection sheets pass sm), the list and search gutters are gone, and rows, search box and button now share one left/right edge โ€” on a 375pt phone a row is 16pt wider per side than before.
  • The language picker shows the name only. Rows are one line now; the locale code is no longer a subtitle. It still searches: SeaSelectionItem gained keywords, text the sheet matches on but never draws, so typing zh_Hans keeps working.
  • Every text field is a capsule by default. SeaGlassTextField.capsule now defaults to true: the radius is half the height, so a 40pt field is a 20pt capsule everywhere instead of a value restated per screen. Multi-line fields keep their natural height โ€” a capsule is a single-line shape โ€” and capsule: false still gets the old look.

0.9.4 #

๐Ÿงฉ The library's own pickers obey the same contract #

Sea.dialog.showLanguagePicker / showAppearancePicker were the last two dialogs that looked like nothing else in the app: one was an action sheet, the other a hand-built search screen with its own list. Both are now the single-select sheet โ€” same header, same SeaGlassSheetChoiceTile rows, same one bottom button, same Done.

  • Language (the longest list in any app): 200+ locales, with a capsule search box inside the sheet that narrows by display name or locale code. A row's index is an index into the locales the sheet holds, not into the filtered view, so a search cannot make Done apply the wrong language.
  • Theme: system / light / dark with icons, current selection pre-checked, applied on Done.
  • subtitle: and doneLabel: were added to both; every existing parameter still works.

๐Ÿ”Ž Search, ceiling and live count โ€” on the unified sheet #

Sea.dialog.showSheet / showSelection / showMultiSelection grew what a long list needs, so no app has to build its own body again:

Parameter Effect
searchPlaceholder: capsule search field in the sheet, filters label/subtitle, common_no_results when nothing matches
noResultsLabel: override that copy
maxSelection: multi-select ceiling โ€” a tap past it is refused instead of silently replacing an earlier pick
onSelectionChanged: fires on every tap (not just Done), for a live count in the header
maxHeightFactor: sheet height, now honoured in items mode too

fillHeight also turns on when a sheet is searchable: the search box adds height, and a shrink-wrapped list past the sheet's ceiling overflowed instead of scrolling.

0.9.3 #

โŒจ๏ธ A text field you can tap anywhere #

SeaGlassTextField now wraps the vendor field in a tap region with HitTestBehavior.opaque that requests focus, so every pixel of the box โ€” including the padding around the text and the icon gaps โ€” opens the keyboard. Before, only the text itself did, which reads as "I have to hit the hint exactly". Taps on the text still place the cursor: the inner recognizer wins the arena, so this is additive, not a takeover.

A caller that supplies no focusNode gets one created internally (and disposed by us); a read-only field does not take focus.

โฌญ Capsules are a flag, not a magic number #

capsule: true gives the field a fixed height (40 by default) and derives the radius from it โ€” a 40pt field is a 20pt capsule, so the shape cannot drift when a screen picks another height:

SeaGlassTextField(
  controller: _query,
  placeholder: t('search_hint'),
  capsule: true,            // height 40 โ†’ radius 20
  height: 34,               // a different height stays a capsule: radius 17
  prefixIcon: Icon(CupertinoIcons.search, size: 16),
  suffixIcon: clearButton,
  onSuffixTap: _clear,
)

height, borderRadius, iconSpacing and padding are exposed for the cases that genuinely need a custom shape; the default is unchanged (radius 10, no fixed height) so existing call sites look exactly as they did.

0.9.2 #

๐Ÿ“„ Selection rows have exactly one look, and long lists page #

SeaSelectionItem carries text, an optional icon, an optional subtitle and a destructive flag. Every row is drawn by SeaGlassSheetChoiceTile โ€” single and multi select share it, and there is deliberately no builder: hook. A picker that looks different from another picker was the thing to fix, so the escape hatch does not exist.

โฌ‡๏ธ Paging: onLoadMore #

final chat = await Sea.dialog.showSheet<int>(
  title: t('select_chat'),
  items: firstPage,                    // 20 rows
  doneLabel: t('common_done'),
  onLoadMore: () async {               // return [] => that was the last page
    final rows = await repo.chats(offset: offset, limit: 20);
    offset += rows.length;
    return [for (final c in rows) SeaSelectionItem(label: c.name)];
  },
);
  • The next page is pulled when the list scrolls within 160 px of its end.
  • A sheet whose first page is shorter than the sheet pulls a page by itself (bounded to 10 rounds): there is nothing to scroll, so a scroll trigger alone would never fire.
  • [] means "no more" and is stated once, at the bottom. A failed page keeps the rows already loaded and turns the footer into a Retry โ€” a scroll event never retries on its own, or a source that is down would spin.
  • Paged sheets always fill the sheet height, which is what makes the end reachable.
  • Index-based results are append-safe: pages only ever add to the end, so the index a caller gets back still points at the row it tapped.

๐Ÿž Fix: closing a selection sheet could throw #

The Done button used to pop an Object sentinel into what is really a Future<int?> route. The navigator then failed to cast the result, and the sheet's future never completed. It now signals "Done was pressed" with a flag and pops nothing, so a dismissal (null) and a confirmation stay distinguishable without lying about the route's type.

0.9.1 #

โœจ Two dialog shapes, and only two #

Every dialog in an app now comes from one of two entries on Sea.dialog โ€” the old mixture (vendor alert, sheet-based confirm, four hand-built sheets) is gone. Each shape has exactly one style; per-call-site variations are what this release removes.

Sea.dialog.showSheet(โ€ฆ) โ€” bottom sheet

Title + subtitle + body (single select / multi select / any widget, height fits its content) + one bottom button. The title's top-left and top-right corners take icons:

final lang = await Sea.dialog.showSheet<int>(
  title: t('language'),
  subtitle: t('language_desc'),      // second line under the title
  leadingIcon: CupertinoIcons.globe, // top-left corner
  trailingIcon: CupertinoIcons.checkmark, // top-right (the โœ• steps aside)
  items: items,                      // or `child:` for a custom body
  selectedIndex: current,
  doneLabel: t('common_done'),
);

Sea.dialog.showAlert(โ€ฆ) โ€” centred alert

Title + subtitle + body, then two buttons in a row or three stacked โ€” decided by actions.length, no style switch:

await Sea.dialog.showAlert(
  title: t('delete_files'),
  subtitle: t('delete_message'),
  child: Text(t('delete_detail')),
  actions: [
    SeaDialogAction(label: t('common_cancel')),
    SeaDialogAction(label: t('delete'), isDestructive: true, result: 'ok'),
  ],
);

๐Ÿ” Migrated, not deprecated #

showConfirm is now the centred alert (it used to be a bottom sheet), and showInfo / showSuccess / showError / showSelection / showMultiSelection all delegate to the two entries above โ€” same style, no code change needed. SeaGlassDialogSheet / SeaGlassSheetScaffold remain for the one-off sheet that really does need a custom frame, but they are no longer the way to build a standard dialog.

SeaGlassSheetScaffold grew what the standard sheet needed: subtitle, leadingIcon / trailingIcon, and primaryAction (a single full-width button).

0.9.0 #

โœจ A page is one class #

SeaPage and SeaPageState were two classes; they are one. A page is now the widget and its own state: build runs on the page, this is the page, and controller, seaNormal, otherWidget and seaPage(โ€ฆ) are all read straight off it.

// before
class ChatPage extends SeaPage<ChatController> {
  const ChatPage({super.key});

  @override
  SeaPageState<ChatController> createState() => _ChatPageState();
}

class _ChatPageState extends SeaPageState<ChatController> {
  @override
  Widget build(BuildContext context) => seaPage(โ€ฆ);
}

// after
class ChatPage extends SeaPage<ChatController> {
  ChatPage({super.key});

  @override
  Widget build(BuildContext context) => seaPage(โ€ฆ);
}

What a State gave the widget, the page has. seaInitState and seaDispose take the place of initState and dispose โ€” and take no super call, because there is no State underneath to call into. setState, mounted and context mean here exactly what they mean there. A page is a TickerProvider, so TabController(vsync: this) and AnimationController(vsync: this) read as they always did; the element owns the tickers and reports one still running when the page goes, which is what makes seaDispose the place a page stops what it started. (One caveat: the analyzer's async-gap rule knows State.mounted and not a page's, so a page that reads context after an await is told its if (!mounted) return; is unrelated โ€” it is not.)

The page is created once. A StatefulWidget's state outlives the widget its parent keeps re-making; a page is both halves, so the instance the page was created with is the one it keeps โ€” build runs on it, setState repaints it, and a parent's rebuild neither re-runs the constructor nor resets a field. Two consequences follow, and both are in the SeaPage docs: constructor arguments are read once (a page that means to be another page is another page โ€” a ValueKey, the idiom a filtered list already uses), and a page is not const. A page that keeps a field of its own silences the framework's @immutable warning in its own file, with the reason beside it:

// A page is its own state, so this one keeps a field that changes.
// ignore: must_be_immutable
class LearnPage extends SeaPage<LearnController> {

Below a page the old trick still works โ€” hold the pages in a field of the page above them, as MainPage holds its four tabs, and the identity is stable because the field is.

โš ๏ธ Breaking. SeaPageState is gone โ€” its members are SeaPage's, and SeaPage.buildPage is gone with it, because there is one entry point now and it is build. seaController is controller. Pages are no longer const. Unchanged: seaPage(โ€ฆ) and every parameter of it, seaNormal, otherWidget, seaRefresh, seaLoadMore, seaAutoUpdate, SeaPlainPage, SeaNoController, context.seaPage<T>(), SeaPageScope, SeaObs, SeaPageRetry.

0.8.2 #

โœจ The large title moves into the bar, and the chrome rounds to iOS 27 #

Large title, in the bar. iOS 27 grew the bar because the large title moved into it. The title stays a sliver of the scroll view โ€” that is what keeps the collapse, the pull-down indicator, the search field and the subtitle working โ€” but the bar's glass now covers it, so the page reads its own title through the bar instead of under it: the surface is safeTop + toolbar + largeTitleExtent ยท (1 โˆ’ t), i.e. 184pt at rest and 113pt once the content has scrolled under it, with the small title fading in inside the 54pt band.

โš ๏ธ Two things had to move with it: the collapsed title is anchored to the top band now (bottomCenter would have ridden down into the large title as the glass grew), and preferredSize is toolbar + largeTitleExtent.

The title's band is the toolbar's. The large title no longer hangs in a strip of its own below the controls: its band is exactly as tall as the toolbar (SeaSizes.largeTitleExtent == SeaSizes.toolbar, 54pt), its top flush with the toolbar's bottom edge, and it is shown by default. Measured on a 390ร—844 screen: toolbar 59โ€“113, title band 113โ€“167, the 34pt line at the top of that band, content from 167 down โ€” two bands of the same height, which is the Focus shape. SeaSizes.largeTitleExtent is the one knob if the band should be taller (the kit's own whole-bar number is 125pt, i.e. a 71pt band).

Radii. iOS 27's glass chrome converges on 34 โ€” SeaRadius.button and SeaRadius.sheet are 34 (were 28). SeaRadius.sheetLarge is new, at 38: the popover, the edge-to-edge sheet and the iPad sheet, the one place the kit steps past 34.

Bar buttons are pills. SeaGlassIconButton draws GlassIconButtonShape.roundedSquare at borderRadius: size / 2 โ€” the kit describes the small glass as "radius 100 on a 48pt box" and lists every step of the button ramp (28 / 34 / 50) as pill. The 44pt hit region is unchanged.

โœจ Bar metrics move to iOS 27: 54pt toolbar, 125pt with the large title #

Apple's iOS 27 kit (27.0.2) grew the navigation bar, because the large title now shares the bar with the controls instead of sitting under it:

iOS 26 iOS 27
Nav bar 44pt 54pt
Nav bar, large title 96pt 125pt

The large title's own type is unchanged at 34pt โ€” the bar around it is what grew. Two tokens carry it, and every hard-coded 44/52 in the shell now reads from them:

  • SeaSizes.toolbar โ€” 54, the default toolbarHeight of SeaGlassAppBar, SeaAppPage and seaPage();
  • SeaSizes.largeTitleExtent โ€” 71, the default materializeExtent (54 + 71 = 125).

โš ๏ธ SeaInsets.top() used to fall back to SeaSizes.control โ€” the 44pt tap target โ€” when no bar scope was found above the context (which is always the case for the page that owns the bar). That answered the wrong question: it falls back to SeaSizes.toolbar now, so a custom body clearing the bar reserves 54pt instead of 44.

โœจ SeaAppPage loads, and draws the loading states, from two callbacks #

A page that shows fetched data had to do the same things every time: mix in SeaPageMixin / SeaStatusMixin for the loading, empty and error states, wrap the body in SeaRefreshWidget for the gestures, and hand-place the status widget where the content would have been. SeaAppPage now takes the two callbacks those gestures run and does the rest โ€” it opens by refreshing, reads the answer, and draws the spinner, the empty state or the error itself:

SeaAppPage(
  title: 'Feed',
  onRefresh: controller.seaRefresh,
  onLoad: controller.seaLoadMore,
  slivers: [SliverList.builder(...)],
);

SeaLoadResult โ€” what a load reports

A page cannot read a controller's flags, and it cannot see a failure in the future it awaits either: seaRefresh catches its own throw to set seaError and returns normally, so "it failed" and "it worked" arrive down the same path. One bit of the answer was enough for a footer indicator; a page that draws its own states needs the count and the failure as well, so the answer now travels in the return value.

SeaLoadResult carries count, noMore and error, and SeaLoadResult.of reads a result, an Iterable or a number (a count), a bool (the original "no more"), or nothing at all โ€” so every existing callback keeps working, and SeaRefreshWidget keeps settling its indicator.

SeaPageMixin / seaRefresh and seaLoadMore now return one instead of a bool โ€” a breaking change only for a caller that consumed the old return value directly (the count is seaData.length, which they had all along).

What the aggregation buys

  • The page opens by loading: autoLoad (default true) runs onRefresh on the way in, and the first frame is already a loading one โ€” the mixins' initState behaviour, moved where the state can see it. autoLoad: false is the escape hatch for a controller that still refreshes from its own onInit.
  • The status is a sliver of the page's own scroll view, so a loading page keeps its large title, its search field and its materialising bar, and a failed page stays pullable โ€” the retry is a button, but the gesture a reader tries first still works.
  • A count is what draws the empty state, and null is not a count: a loader that only reports "no more" has not described its data, and reading silence as nothing would put an empty state over a list it did not mention.
  • Precedence is the mixins': error, then loading while there is nothing to show, then empty. A failed refresh wins over a stale list; a failed load-more does not โ€” the footer already shows it, and blanking a list the reader is halfway down is worse than the failure.
  • Say nothing and nothing happens: no callbacks and the page is not wrapped in a refresh view at all, so a static page keeps exactly the physics it had. loading / error / empty stay as overrides for a page that knows better than its callbacks.
  • onRetry defaults to onRefresh โ€” the same call the pull gesture makes, run through the page so the state it leaves behind is the page's to show.

SeaPageRetry โ€” a status widget you wrote can borrow that retry

The default states get the retry handed to them; a loadingWidget / errorWidget / emptyWidget you supplied could not, and wiring their buttons to a controller instead was quietly wrong: the retry is the page's refresh, so a button that bypasses it leaves the page drawing "nothing here" over a list that just arrived.

SeaPageRetry.of(context) is the page's retry, offered through the status sliver. It is null outside a page, and null when the page has neither onRetry nor onRefresh โ€” so a status widget draws without a button rather than with a dead one:

emptyWidget: Builder(
  builder: (context) => SeaErrorWidget(
    seaTitle: 'Nothing here yet',
    seaOnRetry: SeaPageRetry.of(context),
  ),
),

โœจ A large title for a page whose scroll view cannot hold one #

A large title is scroll content, which needs a scroll view that runs top-down. A bottom-anchored list has no such shape: a conversation keeps its newest row at the bottom however short it is and therefore scrolls reverse: true, and a reversed scroll view lays its slivers out from the bottom edge up โ€” a title placed among them lands under the content. Such a page had nowhere to put its title, so it went without one: the chat's large title never collapsed, never scrolled, and never left.

The page now takes the title out of the scroll view. Pass a GlassLargeTitleController and the page pins the large title above your body, collapsing it against the scroll view you attached the controller to:

final titles = GlassLargeTitleController();

SeaAppPage(
  style: SeaAppPageStyle.large,
  title: 'Conversations',
  titleController: titles,
  body: ListView.builder(
    reverse: true,
    controller: titles.scrollController,   // the page follows this scroll
    itemBuilder: ...,
  ),
);

The caller attaches the controller, because the caller is the one who owns that scroll view โ€” the page cannot reach into a scrollable it did not build. Everything else is shared: the bar fades its compact title in over the same collapseProgress, and SeaPinnedLargeTitle (the new widget doing the work) hands its height back as it goes, so the conversation grows into the space rather than being left with a gap where the title was. Same type ramp and fade curve as SeaGlassLargeTitle; the one thing not copied is the overscroll stretch, because the pull that would stretch it is a conversation's refresh gesture.

The body is handed a box, not a column's leftover

The pinned title used to sit in a Column with the body under it as an Expanded โ€” correct geometry, wrong shape for the page it is for. A conversation wants to pin its own control to the bottom of the screen (the input bar), and an Expanded slot is a box whose height changes every time the title collapses.

So the page lays the two out as a Stack: the title rides at the bar's edge, and the body is Positioned.fill below it, held clear by a Padding โ€” which means the body's geometry never changes, only the room above it does. A Positioned(bottom: 0) inside the body stays on the bottom edge of the screen while the title is collapsing over it, and SeaAppPage no longer needs a flex slot at all.

The title's room has to be known to the page now, which is why it is a single line with no subtitle: it reports its own measured height back (SeaPinnedLargeTitle.onHeight, seeded from the type ramp so the first frame is already right), and a second line is a number the page could not have reserved for. Passing a subtitle in this mode trips an assert rather than overlapping.

A page that brought a body and no controller still gets no large title. That is the honest answer โ€” but it is now a documented one, with a test.

โœจ SeaPage โ€” the page and its controller, bound to the subtree #

The controller of a page is used by widgets that are several layers below it and were, until now, handed it as a parameter or reached for it with Get.find. Both work; neither says which page the widget belongs to.

SeaPage<T> does. Inherit it, pass the controller, and everything below reads it:

class ChatPage extends SeaPage<ChatController> {
  const ChatPage({super.key});

  @override
  SeaPageState<ChatController> createState() => _ChatPageState();
}

class _ChatPageState extends SeaPageState<ChatController> {
  @override
  Widget build(BuildContext context) => seaPage(
        style: SeaAppPageStyle.large,
        title: 'Chat',
        onRefresh: controller.load,
        slivers: const [SeaPageSliver(child: _Conversation())],
      );
}

class _Conversation extends StatelessWidget {
  const _Conversation();

  @override
  Widget build(BuildContext context) {
    final chat = context.seaPage<ChatController>();
    return Text('${chat.messages.length}');
  }
}
  • context.seaPage<T>() / SeaPageScope.of<T>(context) โ€” the controller of the page the widget is actually inside. Reading one that is not above you throws an error naming the type, instead of quietly finding some other page's.
  • SeaObs<T>(seaBuilder: โ€ฆ) โ€” the reactive half, so following a controller's obs field is one widget instead of a lookup plus an Obx.
  • controller: on the page is optional: pass one (a test, or a page that builds its own) or leave it out and the registered one is resolved, which is the shape a route binding expects โ€” the page stays const.
  • SeaPageState<T> is public, so a page that needs a lifecycle writes createState and overrides build on the state, with controller already resolved.

The page is seaPage, and it never builds a SeaRefreshWidget

A page no longer assembles its own skeleton. seaPage(โ€ฆ) takes every parameter of SeaAppPage and means the same thing by each, so the two are one API with two front doors โ€” this one already knows the page's controller and its states. The bars, the gutter and the refresh view come with it, which is why a page that wants pull-to-refresh says onRefresh: and is done: no SeaRefreshWidget, no gesture to wire, no indicator to place.

The two callbacks are wrapped on the way through, which is what lets the page answer for the same loads the indicators are showing. A load the page did not run is a load whose result it would never learn.

The three states are seaNormal and otherWidget

The page owns its loading / error / empty states โ€” derived from what the two callbacks report, by the same precedence SeaAppPage uses โ€” and offers them as one branch:

seaNormal ? _messages() : otherWidget

seaNormal is false while there is nothing to show yet; otherWidget is then whichever of the three applies, and SizedBox.shrink() when seaNormal is true, so the condition is safe to read either way.

A page handing over slivers: or children: does not need either โ€” seaPage draws the state for it, inside the page's own scroll view, which is what keeps the large title and the materialising bar on screen while it waits. seaNormal is for the page that brings its own body:, and therefore its own scroll view: a conversation, or a list the page pins a control against.

An explicit loadingWidget / errorWidget / emptyWidget is still the page's, and its retry reaches the page through SeaPageRetry.of(context) โ€” so a retry moves the page's own spinner rather than a controller the page never hears from again.

SeaPlainPage โ€” a page whose screen has no controller

A splash screen, a camera preview, an entry detail that loads itself: these want the page โ€” the chrome, the refresh view, the three states โ€” with nothing to publish. SeaPlainPage is that page, over a SeaNoController they never have to name. It publishes no scope, because there is nothing to publish.

class _CameraPageState extends SeaPageState<SeaNoController> {
  @override
  Widget build(BuildContext context) =>
      seaPage(title: 'Camera', body: const _Preview());
}

A page's controller is resolved once

It is read on first use and kept for the life of the page, so a rebuild does not re-resolve it. A page that means to belong to a different controller is a different page โ€” give it a ValueKey, the same idiom a filtered list uses to reload when the filter changes.

A page's state is typed over the controller, so State.widget is a SeaPage: a page with constructor fields of its own narrows it back with _MyPage get widget => super.widget as _MyPage.

โœจ The pull-down spinner on a reversed page clears the input bar #

A conversation scrolls reverse: true, which makes the viewport AxisDirection.up โ€” and EasyRefresh anchors the header to the bottom of the viewport for that direction. That is the foot of the screen, which is exactly where a chat page pins its input bar: the spinner for the gesture a reader makes most appeared underneath the field.

SeaAppPage.headerInset (and SeaRefreshWidget.seaHeaderInset underneath it) is the room the page reserves for it. The header is a bottom-anchored box, so padding its bottom grows it upward and takes the spinner with it โ€” the mirror of seaFooterInset, which does the same for the load-more indicator at the other edge.

SeaAppPage(
  headerInset: _inputBarHeight + SeaInsets.bottom(context) + SeaSpacing.md,
  ...
);

๐Ÿ› A page's own body could not be pulled at all on Android #

SeaAppPage hands its scroll view the physics the indicators drive, but it does not build a caller's body โ€” and EasyRefresh only scopes its physics when it builds the child itself. So a page whose only scrollable came from the caller was left on the platform default: on Android that clamps the overscroll, which means no overscroll notification, which means onRefresh and onLoad never ran. The page advertised two gestures and had none.

The physics are now published to a caller-owned body through a ScrollConfiguration, the same mechanism EasyRefresh uses for the child it does build. A physics: set on the scroll view itself is more specific and still wins, so a body that means to scroll differently can still say so.

๐Ÿ› A page inside a tab shell hid the tab bar from its own content #

SeaGlassScaffold publishes the bar heights a descendant reserves clearance with, and a page with no bottom bar of its own published zero. That is a claim about the screen, not about the widget: in MainPage the tab bar belongs to the outer scaffold and the four tab pages carry no bar at all, so inside such a page SeaInsets.bottom resolved to nothing โ€” and anything positioned with it settled underneath the tab bar. In the AI tab that was the whole input bar: the field and the send button were drawn behind the tab pill, and the newest message was unreachable below it.

The scope is now inherited across a genuine nesting: a scaffold with no bar of its own republishes the one it is inside. A pushed route or a sheet starts from its own bars as before โ€” those are siblings in the overlay, not descendants of a page. The top half is deliberately not inherited; its fallback already means "this scaffold has no bar", and carrying an enclosing value up there would reserve room for a bar that may not exist.

๐Ÿ› Both refresh indicators were drawn over the page's own chrome #

Two placement bugs, one cause: EasyRefresh anchors its indicators to the viewport, and every page here runs its body behind the bars โ€” so the viewport's top edge is the top of the screen and its bottom edge is where the floating tab bar is.

Pull-down. An ordinary header is Positioned(top: 0), so the spinner was painted over the status bar, above the large title. SeaAppPage now asks SeaRefreshWidget for the locator-positioned header (seaLocateHeader) and puts the HeaderLocator immediately above its large title, so the spinner settles in the gap a pull opens right under the bar and reaches the title not at all. Earlier it sat at the top of the list, which read as "over the first row" and, measured, overlapped the title's glyphs by 22pt.

Two things make the placement work:

  • A HeaderLocator is a zero-height sliver, and its header grows downward from the locator. So the room the indicator needs is carved out of the spacer above the title (safeTop + toolbarHeight - headerRoom) and handed back below the locator โ€” net zero at rest, and the title does not move.
  • headerRoom is deliberately the smallest value that covers a pull rather than a comfortable one, because it comes out of the same gap the indicator has to live in. A pull only opens ~30pt here (the Cupertino header's triggerOffset is damped by kCupertinoFrictionFactor) and the header box is 31pt tall, so the gap fits exactly one indicator; SeaSpacing.sm (8) is enough, and SeaSpacing.xl (20) pushed the spinner above the bar. The overscroll guard is the stretch on the large title itself โ€” it scales up to 1.12x anchored at its bottom edge, so only its top grows, by ~12pt for a three-line title, which the reserved 8pt plus the header box's own empty foot covers.

The locator goes in only when the page owns its scroll view and there is a pull-down to place โ€” EasyRefresh substitutes a no-op header without one, and a body: passes the scroll view to the caller. A compact page (no large title) has no title to sit above, so it gets the locator directly under the bar spacer, with the same effect: the spinner lands above the search field and the lead paragraph rather than across them.

Above-the-title is as high as a single scroll view can place it and the reason is worth recording: the title is scroll content, and a page only opens space at its own top โ€” so what a pull reveals is above the title, never below it. Matching iOS exactly would mean taking the large title out of the scroll view and animating its collapse against the offset instead of scrolling it away, which is a page-shape change, not an indicator fix.

Load-more. The footer is anchored to bottom: 0 of the viewport, which is inside the tab bar: the spinner settled half under it for the whole request. SeaRefreshWidget.seaFooterInset lifts it by the bar's own clearance โ€” SeaAppPage passes SeaInsets.bottom โ€” and only the indicator moves; content still scrolls behind the bar.

Read from the page's own bar rather than through SeaInsets.bottom alone, incidentally, because a page's context is an ancestor of the scaffold it builds: its own bar's metrics are not above that context, so the inset resolved to zero. That reasoning only covers a bar the page puts up. A bar on an enclosing shell has to win over it โ€” the tab root is one SeaGlassScaffold that owns the tab bar with the pages as plain bodies inside it, and answering 0 for "no bar of my own" was a non-null height, which overrode the shell's published metrics and put the spinner straight back on the tab bar. The height is nullable for exactly that reason: null falls through to the scope, so a page inside a shell clears the shell's bar while a page with its own bar still clears its own.

Measured, both before and after, in sea_app_page_refresh_layout_test.dart.

๐Ÿ› SeaRefreshWidget.seaChildBuilder โ€” the pull works when the page owns the scroll view #

SeaRefreshWidget could only wrap a child you had already built, and EasyRefresh publishes its physics through a ScrollConfiguration: a scroll view given an explicit physics: ignores that, so a page that owns its CustomScrollView โ€” SeaAppPage does, because the bar's materialisation reads the same offset โ€” would scroll but never let the indicator follow the finger. The new seaChildBuilder hands the scrollable the physics the indicator drives, and SeaAppPage uses it.

โœจ SeaPage is the page โ€” write build, and stop writing Obx #

A page built on SeaPage had three things left to write by hand, and all three were boilerplate: a buildPage(context, page) whose only job was to forward to page.seaAppPage(โ€ฆ), an Obx around whatever part of it read the controller, and a list it maintained itself for a paginated screen.

SeaPageState.build is now the entry point, and seaPage(โ€ฆ) is the whole of it:

class _FavoritesPageState extends SeaPageState<FavoritesController> {
  @override
  Widget build(BuildContext context) => seaPage(
        title: 'Favorites',
        onRefresh: controller.seaRefresh,
        onLoad: controller.seaLoadMore,
        slivers: [
          SliverList.builder(
            itemCount: controller.seaData.length,
            itemBuilder: (context, i) => _Tile(favorite: controller.seaData[i]),
          ),
        ],
      );
}
The page repaints because the controller says so

SeaPageState subscribes to its controller and calls setState when the controller notifies โ€” which is update(), the very call get's own GetBuilder listens to. A page therefore reads its controller's fields directly and never wraps itself in an Obx; AiController and OnboardingController in the isay app are two worked examples, and their page-level Obxs are gone.

Where Obx stays, and why:

  • A leaf that follows one obs โ€” a bubble that grows a token at a time, a badge reading one counter. SeaObs<T>(seaBuilder: โ€ฆ) is the library's form of it; a plain Obx does the same job for a widget that already holds its controller as a parameter.
  • A source that is not the page's controller โ€” a global theme, a service. SeaObs only reaches the page's own controller, so an Obx on the outside value is the right answer.

Rx values are untouched: an Rx field plus update() is a perfectly good pair, and SeaObs still exists for anything that wants its own subscription. A page that would rather drive its own repaints overrides seaAutoUpdate to false.

seaAppPage is now seaPage, and there are two ways in
  • SeaPageState.seaPage(โ€ฆ) takes every parameter of SeaAppPage and means the same thing by each; the SeaPageScope is wrapped around what it returns, so build can return it directly and the page's content is still inside the scope.
  • SeaPageState.build is the primary entry. SeaPage.buildPage(context, page) stays as the other one, for a page that would rather remain a const widget with no state class of its own. Whichever of the two is overridden is the one that runs; overriding neither is reported rather than shipped as a blank screen.
  • SeaPageState.seaController is joined by controller, which is what a page's own helpers already call it, so the same name works in both places.

โœจ SeaListController<T> โ€” pagination a page does not have to write #

Every paginated screen keeps the same five things: the list, the page the next request asks for, whether the source ran out, one load at a time, and repainting when a page arrives. SeaListController<T> is them, once, on the controller โ€” generic over the row type, so the page's seaData[i] is typed:

class FavoritesController extends SeaListController<Favorite> {
  @override
  Future<List<Favorite>> seaLoadData(int page) async {
    final result = await _repository.getFavorites(
      limit: seaPageCount,
      offset: page * seaPageCount,
    );
    return switch (result) {
      SeaApiSuccess(:final data) => data.favorites,
      SeaApiFailure(:final error) => throw error,
    };
  }
}

The page hands controller.seaRefresh / controller.seaLoadMore straight to onRefresh / onLoad and indexes controller.seaData; it keeps no flag, no copy and no setState. A failure is reported by throwing from seaLoadData โ€” the load catches it and hands the page a SeaLoadResult carrying it, so the page's error state comes up on its own.

Deliberate details, each of them a bug the hand-written versions kept having:

  • A failed refresh reports no count while the list is empty. A page that never arrived says nothing about how much there is, and reporting 0 would put the empty state over a list the reader is about to get back.
  • A failed load-more keeps its place. The count rides along and seaNoMore is left alone, so the list the reader is halfway down is not blanked and pulling again retries the same page.
  • seaHasMore is asked before seaPage moves on, so it still names the page that was just served. Its default โ€” "the page came back full" โ€” is the only evidence a source that says nothing leaves behind; a source with a hasMore flag or a cursor overrides it.
  • One load at a time. A second load-more would repeat the same page and add it twice.
  • seaItemKey drops a row that arrived twice โ€” for a source that can repeat itself, and for Flutter's sake as well: two children with the same key.
  • A load that lands after onClose still ends, but does not notify. update() on a disposed controller throws.
  • seaLoadMore before any seaRefresh replaces rather than appends โ€” page 0 is the first page either way.

SeaListController is the controller-side successor to SeaPageMixin, which keeps its paging state on the page and so cannot hand the page a list it does not maintain. The mixin stays for pages that are not SeaPages, and its docs now say which to reach for.

โœจ SeaListPager<T> + SeaListHost โ€” several lists on one controller #

SeaListController puts the paging on the controller, which is the right shape for a screen with one list and the wrong one for a screen with two: a controller with a feed and a recommendation strip cannot be either of them.

The behaviour now lives in a mixin, SeaListPaging<T>, with two hosts:

You write You get For
extends SeaListController<T> the page's own controller one list
extends GetxController with SeaListHost one SeaListPager<T> per list several lists
class HomeController extends GetxController with SeaListHost {
  static const _pageSize = 20;

  late final feed = seaPager<Post>(
    (page) => _repository.feed(limit: _pageSize, offset: page * _pageSize),
    seaPageCount: _pageSize,
  );
  late final recommended = seaPager<Post>(
    (page) => _repository.recommended(offset: page * 5),
    seaPageCount: 5,
  );

  @override
  void onInit() {
    super.onInit();
    feed.seaRefresh();
    recommended.seaRefresh();
  }
}

Each pager is its own list, its own page and its own seaNoMore; seaPager wires every one of them to the controller's update(), so a page that follows the controller follows whichever list moved โ€” and closes them all in onClose, because a load that lands while the owner is being disposed must not reach update() on the way out. That rule is what SeaListHost is for: it is the one thing a multi-list screen would otherwise have to remember on every screen.

SeaListPager takes seaHasMore and seaItemKey as constructor arguments โ€” a pager is a value, not a class to inherit โ€” and may be subclassed for anything more (a cursor it holds, a failure it also reports), seaLoadData included. Everything else is SeaListPaging, which is what keeps the two shapes one behaviour rather than two implementations that agree for a while.

Nothing about SeaListController changes: same members, same contract, now the same mixin with the controller as its host. A SeaListController may mix SeaListHost in as well, for the screen whose second list is not the one the page is built around.

๐Ÿ“ Docs #

README: the SeaPage section is rewritten around build / seaPage / the update() repaint, with a new Pagination โ€” SeaListController<T> section, a member table, and the SeaObs-vs-Obx split spelled out. The SeaPageMixin section was documenting member names that no longer exist (initializePage, pageCount, loadData, isNormal, โ€ฆ) and now carries the real ones plus a pointer to SeaListController. The pagination section gained Several lists on one controller โ€” SeaListPager<T>, and SeaListPager / SeaListHost / SeaListPaging are in the API index.

๐Ÿ› The load-more line clears the toolbar on a reversed page #

A reverse: true scroll view is the one shape whose two indicators swap ends: EasyRefresh anchors the header to the bottom of the viewport and the footer to the top โ€” the swap seaHeaderInset describes. Only the bottom end was answerable, and a bottom pad does nothing to a box that hangs from its head, so on a compact page, whose body runs behind its bars, a conversation's "no more" line was read through the toolbar.

SeaRefreshWidget.seaFooterTopInset is the third inset, and padding the top is what carries the indicator down: the box keeps its head and grows downward, so the room goes around the line rather than out of it. The layout suite measures it both ways round. SeaAppPage fills the value in itself โ€” the status-bar-and-toolbar strip for a body that starts at the top of the screen, zero for a pinned title, whose layout reserves that strip already.

โš ๏ธ And the indicator hangs from the page's own box, not from the caller's body: a body that pads its own top clear of the bars does not carry the footer with it. Measured both ways round โ€” with body: Padding(top: SeaInsets.top, โ€ฆ) around the reversed list the footer's top is SeaInsets.top, and with a bare reversed list it is the same figure. The parameter used to say the opposite ("pass 0 from a page whose body already starts below the bars"), which would have put the line back through the toolbar on exactly the page that had done the most to avoid it โ€” the AI tab's conversation. Corrected, and pinned by a test.

โšก A pull-down costs a fifth of a screen, not half #

CupertinoHeader was priced for the full-screen water-drop list it was written for, and both of its costs are wrong on a page that has already placed the indicator itself:

  • its friction factor is easy_refresh's 0.25 โ€” the water drop โ€” where BouncingScrollPhysics, the platform, damps at 0.52. Roughly half, so the same finger travel opens half as far;
  • safeArea adds the status-bar height to triggerOffset on top of that.

Together they made one refresh cost about 490pt of drag on a 844pt screen โ€” over half the screen, for a gesture iOS answers in about 130. The default header is now _SeaCupertinoHeader: safeArea: false, and the friction taken from BouncingScrollPhysics rather than written down, so it is the same number the page's own scroll view damps with and the one place it is defined. Measured: the second 60pt of indicator opens after 140pt of drag instead of 240.

The water drop itself stays. It is what makes the gesture read as iOS rather than as an Android spinner; only the two costs are gone.

โณ seaLoadingTask nests, and every tap-started wait goes through it #

The panel is now counted rather than flagged. A save that refreshes a list and a submit that uploads then reloads both put a wait inside a wait, and a flag meant the inner one finishing took the panel away from the outer one that was still running. The count is restored from a finally, so a task that throws still releases its one claim, and only the outermost call's message is shown. showLoading: false stays out of the counting entirely, so it neither draws over nor suppresses an enclosing panel.

The rule the doc now states outright โ€” every wait a tap starts belongs in here โ€” is worth more than the mechanism. The mask is EasyLoadingMaskType.clear: it blocks the screen without dimming it, which is what makes a second tap land on the barrier instead of on the button, and a double submit is otherwise a race between a finger and a round trip. Work that is not tap-started โ€” a page's first load, a background sync โ€” carries its own progress in the UI and does not belong here; the same goes for a tap whose wait is itself the thing the reader is watching (a streamed translation, a streamed reply), where the panel would cover the answer.

๐Ÿ› The shell publishes a real toolbar height #

SeaGlassScaffold.appBarHeight defaulted to the vendor scaffold's 44, and that number is what a shell with no bar of its own publishes to the pages inside it as SeaBarMetrics.topBarHeight. MainPage draws no app bar โ€” its pages bring their own, and they build to SeaSizes.toolbar (54) โ€” so every page below it reserved a 44pt strip and drew its own 54pt toolbar over that strip's last 10pt. Which is where the load-more indicator and the "no more" line ended up. The default is SeaSizes.toolbar now, so the strip a page reserves is the strip that is actually there.

0.8.1 #

๐Ÿ› The action sheet is centred again โ€” the way iOS 26/27 presents it #

0.8.0's facade pass accidentally made SeaActionSheetStyle.bottom the default, which contradicted the WWDC25 rule the layout test pins (with no anchor to attach to, an action sheet is presented centred) and broke the test suite. centered is the default again, in showSeaGlassActionSheet and Sea.dialog.showActionSheet alike; bottom stays available as an explicit opt-in for operational and selection flows. SeaPreferencePicker passes bottom explicitly, so choice pickers keep the docked sheet they had.

๐Ÿ› HTTP errors speak the app's language #

SeaHttp mapped DioException types to hard-coded English strings ("Connection timeout", "Server error (500)"), so a toast shown verbatim from a SeaHttpErrorInfo never localized. The messages now come from the locale assets with the same keys the rest of the error family uses (common_request_timeout, error_network, error_unauthorized, error_forbidden, error_not_found, error_rate_limit, error_server), and three keys were added across all 205 shipped locales (error_bad_request, error_request_cancelled, error_bad_certificate).

๐Ÿ› Ads: no leaked creatives, and a foreground re-show that actually happens #

  • loadRewardAd / loadPageAd disposed nothing when the caller's BuildContext was unmounted by the time the ad finished loading โ€” the creative was loaded, never shown and never released. Both paths now dispose() the ad instead of showing it into a dead context.
  • _onAppForeground computed the cooldown check and then did nothing โ€” the foreground listener was dead weight. It now re-loads the app-open ad after the 4-minute cooldown, which is what _lastAppOpenAdTime existed for.

๐Ÿงน Reusability polish #

  • SeaApiError.tokenExceeded hard-coded the backend code AI_002; the code is now a parameter ({String code = 'AI_002'}), so other backends can map their own quota-exceeded codes without forking the library.
  • SeaGlassTooltip measured its overlay with magic numbers (left: 16, top: โ€ฆ + 60, SizedBox(width: 8)); the gaps now come from SeaSpacing / SeaInsets, so a themed gutter moves the tooltip with it.
  • Sea.dismissKeyboard carried two stacked @Deprecated annotations for one method.
  • The analyzer is clean (flutter analyze: 0 issues) and the test suite is green (flutter test: 150/150) โ€” the three failures 0.8.0 shipped with are fixed, not deleted.

โœจ Example: strict token compliance #

The demo app had begun drifting off the token system: the catalog's category tints, the gradient/glow demo and the radius pill all carried raw Color(0xโ€ฆ) literals. They now read SeaColors (with withValues(alpha:) for the glow blobs), so a SeaColors.setPrimary call recolors the demos with the rest of the app.

0.8.0 #

โœจ One shape for the whole facade โ€” Sea.<group>.<action> #

The facade had grown two ways to say everything: a namespace (Sea.haptics.selection()) and a flat convenience (Sea.hapticSelection()), an auth group that was really a constructor, and toast/loading spread across nine top-level statics. It is now one shape, grouped by what the call is for:

Sea.toast.success('Saved');        // was Sea.showSuccess('Saved')
Sea.loading.show();                // was Sea.showLoading()
Sea.loading.task(() => api.load()) // was Sea.loadingTask(task: ...)
Sea.keyboard.dismiss();            // was Sea.dismissKeyboard()
Sea.auth.require(() => save());    // was flat Sea.requireAuth / Sea.auth(...)

The flat spellings still compile โ€” each is marked @Deprecated with the exact replacement, so apps can migrate one call at a time and the annotations disappear once they have.

โœจ Action APIs resolve the ambient context #

Get.context is what a GetX app already has, so dialogs, sheets, alerts, pickers, the toast overlay and the auth gate no longer require a BuildContext:

showSeaGlassActionSheet(title: 'Choose Action', actions: [...]);
SeaGlassDialog.showConfirm(title: 'Delete?', message: 'This cannot be undone.');
Sea.auth.require(() => controller.toggleFavourite(id));

context: remains an optional named argument โ€” pass it when you have a specific one (a nested navigator, an anchored popover) and nothing changes. The theme helpers (SeaColors.of(context), SeaTextStyles.body(context), SeaInsets.bottom(context), โ€ฆ) deliberately keep their required context: they read the widget's InheritedWidget chain, where the ambient context would resolve the wrong theme.

โœจ SeaAuthPage.showDialog takes its context by name #

showDialog(context, ...) โ†’ showDialog({BuildContext? context, ...}), matching the rest of the modal family.

โœจ The toast has a position โ€” SeaToastPosition #

A toast was always a banner under the status bar, which is the wrong place for an app whose confirmation should read where the user is already looking. The same surface now lands wherever the screen wants it:

Sea.toast.success('Saved!');                                 // the HUD, by default
Sea.toast.success('Saved!', position: SeaToastPosition.top);  // a banner

.center is the default, in SeaGlassToast, Sea.toast and SeaLoading alike: an app's own message is something the user should not have to go looking for, and a banner under the bar is easy to miss while they read the middle of the screen. .center is not the banner nudged sideways either โ€” it drops the leading icon row for an icon-over-text column and shrink-wraps, bounded by SeaGlassToast.hudMaxWidth (300) with a hudMinWidth (120) floor so a one-word message still reads as a surface. .top and .bottom are the banner shape, under the status bar and above the home indicator.

The entrance stays a transform rather than a fade, for the reason the toast has always been built that way: an ancestor Opacity cannot fade a backdrop glass pass, so fading made the surface look flat first and then "pop" its glass.

โœจ Terse calls โ€” seaToastSuccess(), seaLoadingTask(), seaLoge(), โ€ฆ #

Sea groups its API by domain, which is right for a reference and verbose for the calls an app writes all day. Those are now flat as well, so an app never has to wrap the library to get a short one:

seaToastSuccess('Saved');
seaToastError('Upload failed');
await seaLoadingTask(() => api.loadFeed());
seaLogi('Sign in success', tag: 'AUTH');
seaLoge('Sign in failed', tag: 'AUTH', error: e);

They live in lib/src/core/sea_shortcuts.dart and are a second spelling, never a second behaviour: each delegates to the class behind it, so seaToastError('x') and Sea.toast.error('x') put the same surface on screen. seaLog* takes the message first with tag:, data:, error: and stackTrace: named โ€” the tag is the app's own word for the area (AUTH, API, SUPABASE, โ€ฆ), and data: is the structured fields that follow it on the line.

โœจ Log lines lost the box drawing #

logger's stock PrettyPrinter framed every record between box-drawing rules and laid two stack frames under it, so a screen of output was mostly punctuation and the messages were the part you had to hunt for. The library now installs SeaLogPrinter:

[23:41:02.318][I] Booted
[23:41:02.902][D] [API] payload sent | {status: 200, ms: 42}
[23:41:03.115][E] [AUTH] Sign in failed โ€” BadCredentialsException: Invalid login credentials

One line: level, whatever prefix the caller put in the message, the message, and the error inline. A stack trace is the only thing that takes more lines, and only when the caller passed one โ€” capped at SeaLogPrinter(maxStackFrames:) (8 by default, 0 for never) so a forty-frame trace cannot bury the next ten messages. SeaLogEntry.toString() (what the built-in debug page shows) prints the same shape.

โœจ SeaGlassSheetScaffold โ€” the frame that goes inside a sheet #

SeaGlassModalSheet is the glass surface and nothing else, so every caller invented its own padding, header and way out โ€” the library's own demo had a private _SheetScaffold to prove it. This is that frame, promoted:

SeaGlassDialogSheet.show<String>(
  builder: (_) => SeaGlassSheetScaffold(
    title: 'Rename project',
    actions: [SeaGlassSheetAction(label: 'Save', isPrimary: true, result: 'saved')],
    child: SeaGlassTextField(placeholder: 'Project name'),
  ),
);

// or, the same frame presenting itself
await SeaGlassSheetScaffold.show<String>(title: โ€ฆ, actions: [โ€ฆ], child: โ€ฆ);

A title header with a close control that pops when the caller does not supply one, the action sheet's measured gutters (content and rows in SeaSpacing.lg, consecutive rows SeaSpacing.sm apart โ€” with no gap a Cancel/Save pair reads as one button split in two), leading for the control that shares the header with the โœ• (which keeps the right; the second control goes left), action rows that dismiss the sheet with their result, and fillHeight for a pane that is a list โ€” the shape showSingle, showMultiple and showConfirm were already assembling by hand.

0.7.0 #

โœจ SeaAuth.require โ€” sign-in as a gate, not a destination #

An app that can be browsed signed-out needs one seam where a tap finally meets the auth surface, and that seam should not be forty lines of its own: the sheet, the session check and the retry belong to the library, with no copy and no login route for the app to configure.

onFavorite: () => SeaAuth.require(context, () => controller.toggleFavourite(id)),

It presents [SeaAuthPage] โ€” which carries its own localized labels โ€” and then waits for the session, not for a route result, so password sign-in, sign-up and the social providers all continue the action the user asked for. Dismiss the sheet without signing in and the action simply does not run.

Sea.requireAuth(context, action) is the same call on the Sea facade, and SeaAuth.isSignedIn answers whether a session is open (safe to read before SeaSupabase.init โ€” an unconfigured app is signed out rather than throwing).

0.6.15 #

โœจ SeaAppPage needs nothing but its content #

0.6.14 shipped the merged page widget with both title and style required. Neither needs to be:

  • style defaults to SeaAppPageStyle.compact โ€” most pages are reached by tapping โ€” so large is the one thing a root page asks for, and everything else passes nothing.
  • title is optional. A page that draws its own header โ€” a hero, a custom title block, an empty state โ€” passes no title and keeps the chrome, the gutter and the scroll view, without a second title competing with the one it drew.
SeaNavigator.push(context, SeaAppPage(title: 'Thread', children: [section]),
    backLabel: 'Messages');

SeaAppPage(children: [hero]);          // no title, no style

The shape is still never inferred from the route: whether a screen owns the stack is a product decision, and a page that changes shape because it was presented instead of pushed is a layout bug that moves. The default just means the common case no longer has to say so.

One behaviour came out of making the title optional: a large page with no title has nothing to collapse, so its collapse progress never leaves zero and the bar would never have appeared at all โ€” a page reading as if its chrome were broken. An untitled large page now drives its bar from the scroll offset, which is the same chrome arriving for the same reason: content passing under it.

The example dropped the 16 now-redundant style: SeaAppPageStyle.compact arguments (15 call sites and one code sample) โ€” it is out of the box now, with no wrappers of its own and no argument the library would have defaulted anyway.

Three new tests: a page with neither title nor style still grows a bar on scroll; an untitled large page does too; and the default style is the compact 17pt title. sea_layout_test 31.

sea_text_style_test 31; review_shot_test 44/45 (the documented demo_display environment failure); flutter analyze 0 error / 0 warning.

Bump: 0.6.14 -> 0.6.15.

0.6.14 #

โœจ One page widget instead of two: SeaAppPage #

SeaGlassSmallTitleScaffold and SeaGlassLargeTitleScaffold were the same page with one difference โ€” whether the title was large or compact โ€” and every app had to know which to reach for. They are now SeaAppPage, with SeaAppPageStyle.large or .compact. Both old classes are gone.

SeaAppPage(style: SeaAppPageStyle.large, title: 'Messages', children: [...]);

SeaNavigator.push(context, SeaAppPage(
  style: SeaAppPageStyle.compact,
  title: 'Thread',
  children: [section],
), backLabel: 'Messages');
  • style is required. The library does not infer the page shape from the route. Whether a screen owns the stack is a product decision, and a page that silently changes shape when it is reached a different way โ€” presented instead of pushed, promoted to the root โ€” is a layout bug that moves. The one thing still read from the route is the leading control: a compact page with no leading gets a back button when it can pop.

  • children joins slivers. A column of sections is what pages almost always are, so the page now builds it: gutter per child, childGap between them, and the trailing clearance a floating bar needs, all via SeaPageSliver / SeaBottomInset. slivers stays for pages that need real slivers and places its own insets. This is the plumbing every app was re-deriving, and getting wrong in the same way โ€” a section without the gutter, a last row under the tab bar.

  • subtitle and searchBar mean something in both styles. On a large page they belong to the title block; on a compact page the subtitle becomes the lead paragraph and the search bar the first thing in the body, which is where iOS puts them. One parameter, the right result per shape.

  • materialize now applies to both: false drops the glass surface and keeps the bar's title and controls, for a page that paints its own glass.

โœจ Five widgets promoted out of the example, and SeaGlassListTile grew #

The example had demo_kit.dart, a layer of its own wrappers over this library โ€” including one that re-derived the page skeleton. It is gone, and the parts that were doing real work are now library widgets:

  • SeaGlassListTile.child โ€” a control rendered under the title/subtitle pair, inside the row: the shape a settings or form row takes when the control is too wide for trailing. Cross-axis start, so a chip keeps its width and a slider fills the row. Plus dense, and the already-existing SeaGlassListTile.chevron(context) is now what the demo uses for every disclosure.

  • SeaGlassCodeBlock โ€” monospaced source in the page's own surface.

  • SeaGlassReadout โ€” a labelled, selectable value; empty renders nothing.

  • SeaGlassTintedIcon โ€” the iOS settings-row mark: a glyph on its own tinted square, the same colour supplying both.

  • SeaGlassButtonWrap โ€” a run of buttons that wraps instead of overflowing.

  • SeaTextStyles.code โ€” the ramp's one monospace style, with a family fallback list so a snippet stays monospaced off Apple platforms too.

The example is migrated end to end: 14 demo pages and the shell's own pages use SeaAppPage and the library widgets directly, demo_kit.dart is deleted, and nothing in the example wraps the library any more. Its review screenshots were regenerated โ€” the catalog pages render their compact bar now, which is what they actually show in the app: they used to render a large title only because the screenshot harness mounts each page as a navigation root, so the old shots were showing a shape the running app never drew.

sea_layout_test 28; sea_text_style_test 31; review_shot_test 44/45 (the documented demo_display environment failure); flutter analyze 0 error / 0 warning.

Bump: 0.6.13 -> 0.6.14.

0.6.13 #

๐Ÿ› The toolbar was opaque at the top of the page #

The bar of both title scaffolds is supposed to be transparent until content scrolls under it, and only then grow a glass surface. Reported as "the toolbar defaults to a non-transparent state, and turns glassy once you scroll".

The fade was driven by scaling blur and thickness with the progress. Those are only two of the inputs the glass pipeline reads, so at progress 0 the surface still ran its refraction, saturation, specular and shadow stages at full strength โ€” a flat wash over the top of every page. Measured on the bar's own band over a flat background: +31/+19/+31 on every channel, uniform across the full width, cut off exactly at the bar's bottom edge.

  • SeaGlassTheme.materialized(settings, progress) is now the one place that fades glass, and it does it by scaling LiquidGlassSettings.visibility. Visibility is the single input every effective* getter multiplies by โ€” thickness, blur, chromatic aberration, light, fresnel, shadow, whitening โ€” and the renderer skips its pass entirely at zero. It is also what the vendor's own GlassMaterializeScope scales, and what it warns against scaling piecemeal: doing both applies the progress twice. Both scaffolds call it.

  • The settings are copied rather than rebuilt. Constructing a fresh LiquidGlassSettings silently reset every field the bar did not name, so a materialised bar was a different glass from the rest of the app โ€” saturation 1.5 rather than the theme's 1.1, shadowElevation 1.0, standardOpacityMultiplier 1.0. A bar at full strength is now exactly the app's glass, asserted by equality against SeaGlassTheme.settingsFor.

Tests #

The previous test asserted settings.blur == 0 at rest โ€” the field the code happened to change โ€” and passed while the bar was plainly visible. Both of its replacements are confirmed to fail against the old code:

  • the bar's visibility is 0.0 at rest with every effective* channel zero, 0 < visibility < 1 part-way, and 1.0 equal to the theme's settings past the materialize extent (on both scaffolds);
  • a pixel test over a flat background: the bar band has to be the background colour within 1/255. On the old code it reported a 25/255 deviation.

sea_layout_test 28; sea_text_style_test 31; review_shot_test 44/45 (the documented demo_display environment failure); flutter analyze 0 error / 0 warning.

Bump: 0.6.12 -> 0.6.13.

0.6.12 #

๐Ÿ› Text inside a dialog came out broken โ€” and 0.6.11 made it worse #

Reported as "some dialogs have text that isn't wrapped in Material". The symptom is Flutter's debug style: 48pt, red, monospace, double-underlined โ€” what a TextStyle with no family and no decoration becomes when there is no DefaultTextStyle above it. Three separate causes, all found by mounting every text-bearing widget and every modal in a MaterialApp whose home has no Scaffold, then checking what style the text actually resolved to.

1. SeaTextStyles never named a family, and never cleared decoration. Those are exactly the two fields a TextStyle otherwise inherits, and a modal route is a sibling overlay entry โ€” it never sees the Material of the page that opened it, so there was nothing to inherit from. Every style now names CupertinoSystemText (San Francisco on Apple platforms, the engine's system fallback elsewhere) and sets decoration: TextDecoration.none. fast_sea's own strings are now identical in a MaterialApp, a CupertinoApp, a modal or a bare tree โ€” which is what let the alert family, the permission prompt, the notification and the auth page stop depending on a host.

2. Fourteen widgets render content whose text they cannot see โ€” a caller's Widget (SeaGlassContainer(child:), SeaGlassListTile(trailing:), SeaGlassTooltip(child:), SeaGlassFormField(child:) โ€ฆ) or a label the vendor draws itself from a string we hand over (SeaGlassButton(label:), SeaGlassChip(label:), SeaGlassPicker(placeholder:) โ€ฆ). New SeaGlassContent wraps their build: a transparent Material for a caller's ink, and a DefaultTextStyle from SeaTextStyles inside it, so the base style is the iOS one rather than Material's bodyMedium.

This corrects 0.6.11, which removed the wrapper from those widgets on the grounds that they "only wrap a vendor glass widget". That was the wrong axis: what matters is whether the widget renders content whose text style it does not control. 0.6.11 was right about the rest โ€” the wrappers it removed from the pure label-free surfaces were genuinely doing nothing.

3. The bottom action sheet had no way to be styled. SeaActionSheetStyle. bottom went through the vendor's showGlassActionSheet, which renders each label as Text(label, style: TextStyle(fontSize: 17, color: โ€ฆ)) โ€” no family, no decoration, and no builder to wrap. It is now built on SeaGlassSheet with the library's own rows: the same 44pt target, the same type ramp and the same tokens as the centred form.

๐Ÿ› SeaGlassPullDownButton overflowed its own trigger #

Its width was estimated as (icon != null ? 48 : 24) + label.length * 10 โ€” a guess at glyph advance, and a short one: the vendor draws the trigger at a fixed width with an icon, an 8pt gap and 16pt text inside it, so the row overflowed (a RenderFlex overflowed by 26 pixels). It now measures the label with a TextPainter using the same metrics the vendor does, plus the ~18pt the glass shape takes out of the width it is given. Measured instead of guessed, so it also survives a different font or a larger text scale.

Tests #

New test/sea_text_style_test.dart โ€” 31 cases that mount 20 leaf widgets and 11 modals in a host with no Material and assert that no Text resolves to the debug style. That is the check that would have caught all of the above, and the one that was missing when 0.6.11 shipped.

sea_layout_test 26/26, sea_text_style_test 31/31, review_shot_test 44/45 (the documented demo_display environment failure), flutter analyze 0 error / 0 warning. The example's golden renderer now registers CupertinoSystemText, without which every string draws as boxes and reads as a regression that is not one.

โš ๏ธ Note for the maintainer #

The library resolves liquid_glass_widgets 1.9.0 while example/ still resolves 1.7.2 โ€” two versions of the vendor in one repo, so the example's golden screenshots do not exercise what the library actually compiles against. Worth aligning.

0.6.11 #

๐Ÿงน fast_sea's own widgets no longer need a Material ancestor #

Every glass widget was wrapped in Material(color: Colors.transparent) on the way out. It looked like a requirement; it was not. Nothing in liquid_glass_widgets touches Material.of or InkWell, and every string fast_sea draws carries an explicit iOS style from SeaTextStyles โ€” so the wrapper fed Material's bodyMedium to an iOS component and did nothing else.

32 wrappers removed across 31 files, and 15 files that only ever needed Widget/Clip/EdgeInsets now import package:flutter/widgets.dart instead of package:flutter/material.dart.

Two things were verified first, and one of them changed the plan:

  • Mounted all 41 text-bearing widgets with no Material anywhere above them, then again inside a bare CupertinoApp and a bare MaterialApp: zero "No Material widget found", overlays and dialogs included. Nothing depends on Material.of.
  • But 12 of them did change pixels, because the vendor renders its own labels (a button's caption, a chip's label, a picker's placeholder) as plain Text with no family of its own โ€” they merge onto the ambient DefaultTextStyle, which the wrapper had been supplying. Comparing the two builds inside a CupertinoApp shows the difference plainly: with the wrapper the label takes Material's Roboto inside an iOS host; without it, it takes CupertinoSystemText, i.e. San Francisco. Removing the wrapper is an iOS fidelity improvement, not a neutral change, and the example's 44 golden screenshots are unchanged because there the ambient style was already Material's.

๐Ÿ› Material stays, and now says why #

Twelve wrappers remain โ€” on SeaGlassScaffold, SeaGlassCard, SeaGlassSection, SeaGlassBadge, SeaGlassDialog, SeaGlassMenu, SeaGlassModalSheet, SeaGlassPopover, SeaGlassShareSheet, SeaGlassTooltip, SeaGlassNavigationShell and SeaGlassPage. Each wraps caller-supplied content, and there Material is doing real work: it gives the app's own Text, ListTile or InkWell the DefaultTextStyle and ink they expect. Without an ancestor, unstyled text in a MaterialApp host falls back to Flutter's debug style โ€” 48pt red monospace, double-underlined; that was measured, not guessed. Each of the twelve now carries a comment saying so, so the next person asking "which widgets need Material?" gets the answer from the source.

Tests: sea_layout_test 26/26, review_shot_test 44/45 (the documented demo_display environment failure), flutter analyze 0 error / 0 warning and 42 info items โ€” down from 47.

0.6.10 #

โœจ A centred glass modal materialises instead of flashing #

A dialog presented in the middle of the screen appeared un-glassed โ€” a flat tint where the glass should be โ€” and then snapped to full glass. Two widget layers were behind it:

  1. showCupertinoDialog fades its whole route in with a FadeTransition, and a backdrop glass pass cannot be faded. Inside an opacity layer the backdrop is captured from the wrong buffer, so for the whole 250ms fade the surface drew as a wash and resolved only on the last frame.
  2. The content did the opposite: it was drawn at full contrast from the first frame. So the dialog read content first, glass later โ€” the flash.

Measured on a Redmi K30i 5G (Android 12), contrast inside the dialog rect during the entrance: before the first frame jumped to 26.6 โ€” sharper than the settled 25.7, i.e. content with no glass โ€” then decayed; after it starts at 16.9, below the 22.2 no-dialog baseline (the backdrop is already blurred by the glass) and rises smoothly to 25.6.

  • New showSeaGlassModalSurface presents any glass modal through GlassMaterializeTransition, which drives the shader's own visibility uniforms โ€” the one fade a backdrop pass honours. It is also what the platform does: iOS 26 enters a glass surface with glassEffectTransition(.materialize), the shape resolving first and the content sharpening last.
  • SeaGlassAlert.show, SeaGlassDialog.show, SeaGlassDialog.showConfirm and SeaGlassPermissionPrompt.show all present through it, so the whole alert family is fixed at once. The barrier is a separate overlay entry and keeps its own fade, so the dim still animates.
  • SeaAuthPage.showDialog uses it with scaleFrom: 1.0 โ€” a full-bleed surface should resolve in place rather than swell, and it was paying the same flash.
  • The library already refused ancestor opacity for this reason on the toast and on the scroll-edge fade. The dialog routes were the last surface still paying for it.

๐Ÿ› Two widgets depended on localizations the host may not have #

  • SeaGlassBackButton failed in a CupertinoApp host. It read MaterialLocalizations.of(context) unconditionally, and that lookup asserts and then force-unwraps its result. CupertinoApp supplies CupertinoLocalizations but no Material ones โ€” so every pushed page of the most natural host for an iOS-shaped library broke on the back control. Now looked up through the generic Localizations.of with a fallback. showSeaGlassModalSurface looks its barrier label up the same way.
  • Audited the opposite concern too: no widget in the library needs a Material ancestor. All 41 text-bearing widgets were mounted with no Material anywhere above them, and again inside a bare CupertinoApp and a bare MaterialApp: zero "No Material widget found", including every overlay, dialog and popup. Nothing depends on Material.of, so the question does not arise for text or for anything else.

๐ŸŽจ SeaGlassSheet drew no glass #

It returned its child unchanged, so a caller asking for SeaGlassSheet got a name promising glass and content landing straight on the page behind. It now wraps the vendor sheet โ€” liquid glass, the 28pt sheet top radius, drag indicator, and square bottom corners when docked flush to the bottom edge.

๐ŸŽจ The debug page's three bottom sheets were opaque slabs #

SeaGlassDebugPage's log detail, cache-file actions and storage-key detail all painted a CupertinoColors.systemBackground box with a 16pt top radius over a glass page โ€” the iOS 18 material sheet. They draw SeaGlassSheet now.

๐Ÿ› SeaGlassScaffold.quality, and bars stuck on premium #

The vendor scaffold hard-wires its bars' isolation scope to GlassQuality.premium, so SeaGlassConfig.quality never reached them: an app that asked for the cheap shader still got the expensive one on every bar, and on a mid-range GPU that shows up as a stream of GlassQuality.premium performance budget exceeded errors for as long as the app runs. SeaGlassScaffold gains quality, defaulting to the app-wide setting, so one line in SeaGlassConfig now covers the page and its bars. The example sets GlassQuality.standard, which is what a mid-range device can sustain.

Checked and left alone: the example still declares uses-material-design: true. Neither the library nor the demo renders a Material icon โ€” every icon is a CupertinoIcons glyph โ€” but dropping the flag makes the Flutter tool warn on every build that easy_refresh declares it, and the flag changes no rendered pixel. A permanently warning build is the worse trade.

Tests: 26 in sea_layout_test.dart. New: a centred glass modal has no opacity layer anywhere above it mid-entrance and is driven by the materialize effect; the back button builds in a host with no Material localizations.

0.6.9 #

๐ŸŽจ Bar buttons float inside the bar instead of being welded to its edges #

A 44pt glass button drawn inside the 44pt-tall compact bar row left no air at all โ€” the circle touched the bar's top and bottom edges, which is what made the chrome read as clipped rather than floating. The bar's touch row is 44pt (the HIG minimum and the platform bar height), but the button Apple draws inside it is the middle step of the control ramp.

  • New token SeaSizes.barButton = 34 โ€” the side of a bar button's glass circle (iOS button heights are 28 / 34 / 50). Centred in the 44pt row, it leaves ~5pt of air above and below.
  • SeaGlassIconButton gains size (the drawn side, defaulting to barButton) and minTapTarget (defaulting to SeaSizes.control). The two are independent on purpose: shrinking the circle must never cost the user target area, so the hit region is a full 44pt regardless of how big the glass is drawn โ€” the whole region responds, not just the circle.
  • The labelled back capsule (SeaGlassBackButton.showsTitle) keeps its 44pt height: text needs the room, and a pill is a different shape from the circle.
  • Affects every icon button in a bar โ€” back buttons, trailing actions, and the toolbar rows they sit in.

Tests: the drawn circle is 34pt, sits strictly inside the 44pt bar with air on both sides, and its touch region is the full 44pt square.

0.6.8 #

โœจ A pushed page's toolbar materialises into glass as content scrolls under it #

SeaGlassSmallTitleScaffold's navigation bar was transparent at every scroll position โ€” flat text over the page, no matter how far the content had travelled underneath. iOS 26/27 gives the bar a surface exactly when it needs one: at rest it is just its text and controls, and once content passes beneath, the bar grows an edge-to-edge liquid glass backdrop spanning the status bar and the toolbar.

  • The surface's blur, thickness and glow scale with the scroll offset (full strength after materializeExtent, default 52pt โ€” the same window the large-title collapse uses, so the two page shapes feel like one system). It is deliberately not an Opacity fade: an alpha-composited backdrop surface flashes black for a frame while its backdrop texture is captured, so the glass is kept mounted and its strength is animated instead โ€” the technique SeaGlassLargeTitleScaffold already used, now shared.
  • At rest the surface has zero strength and is hit-test transparent, so it never eats a tap meant for the content.
  • New parameters: materialize (opt-out, for a page that paints its own full-time glass behind the bar) and materializeExtent (the scroll distance over which the glass reaches full strength). scrollController can be supplied when a caller needs to read the same scroll position; otherwise the scaffold owns and disposes one.
  • The scaffold is now a StatefulWidget to own that controller's lifecycle.

Tests: the surface reports zero blur at rest and full strength (the base settings' own blur) once scrolled past the extent; materialize: false builds no surface at all.

0.6.7 #

๐ŸŽฏ The compact bar title is centred again โ€” 0.6.4 had it backwards #

0.6.4 flipped centerTitle to false on the reading that iOS 26 had moved the compact navigation-bar title to the leading edge. That reading was wrong, and it came from an audit report rather than from the platform.

  • centerTitle is true again on SeaGlassAppBar and SeaGlassNavigationBar, so every pushed page โ€” every SeaGlassSmallTitleScaffold โ€” gets the centred 17pt title.
  • The platform centres a bar's principal item: .principal is centred by default in iOS 26, and a left-aligned title is the thing you have to ask for (.toolbarRole in SwiftUI). The bar slides the title to the leading edge by itself only when the trailing controls leave no room in the middle.
  • A left-aligned compact title next to a circular back button is the iOS 18 shape, which is why 0.6.4's change made pushed pages read as un-adopted.
  • This also reconciles the large-title scaffold, whose collapsed compact title has always been centred โ€” 0.6.4 had the two scaffolds disagreeing.

centerTitle: false remains as the opt-out for a bar that deliberately wants the title on the leading edge (an editor, a browser). Both behaviours are now covered by tests; the old test asserted the wrong one.

0.6.6 #

๐Ÿ“ฑ Full-surface audit: services, platform UI, and the reuse contract #

A four-dimension audit โ€” iOS 27 conformance, bugs, example quality, and reusability โ€” plus a run on a physical Android device that surfaced a race the widget tests could never catch.

Reusability (the Sea facade contract)

  • Sea.servicesReady โ€” new. SeaApp renders the app immediately and bootstraps storage / device info / files in the background, so a first-frame initState read of Sea.device.deviceModel raced the bootstrap and read null. On the physical device the example home screen showed "Unknown ยท Unknown" โ€” exactly what a new integrator would hit and read as "the library is broken". Await Sea.servicesReady before reading a service the app shell initialises for you; it completes even when an initialiser fails.
  • Facade drift closed. SeaDeviceProxy now forwards the seven raw info objects (androidInfo โ€ฆ packageInfo), SeaStorageProxy forwards getStringListOr, and SeaAnalyticsProxy forwards analytics / observer. The Sea facade gained the missing platform conveniences: hapticVibrate / hapticsEnabled, clearClipboard, sendSms, openMaps, canOpenUrl, openStoreListing, openUrlInNewTab, showToast, showProgress, isLoadingShowing. A caller should never need to import a service class directly.
  • GlassTab is exported โ€” SeaGlassTab.toBarTab() returns it, and a vendor type in a public signature that cannot be named is unreachable (the same bug class closed five times before; this was the sixth).

Bugs

  • SeaDevice crashed on Flutter web. Platform.isAndroid throws UnsupportedError on web, and SeaApp calls SeaDevice.init() at bootstrap. Now guarded with kIsWeb (web reads webBrowserInfo), and isAndroid โ€ฆ isDesktop return false rather than throwing. deviceModel / osVersion / deviceName also resolve from the web browser info.
  • _initAds had no try-catch โ€” the only _init* without one. A missing ad key threw into the unawaited bootstrap and silently skipped services.onReady. Ads are now best-effort like everything else.
  • _initFirebase resolved the wrong app when a custom FirebaseApp was supplied: Firebase.app() resolves the default app and throws for a named one. Resolves by the supplied instance's name instead.
  • SeaHttp null bodies reported as type-cast errors. onSuccess?.call(data as T) threw a TypeError for an empty response on a non-nullable T, which the generic catch swallowed into a misleading message while the success callback never ran. A null body now routes to onError with "Empty response".
  • SeaFormat.formatSize threw a RangeError for decimals < 0 ('0' * decimals); clamped to 0โ€“10.
  • SeaLog history listeners could break the notification loop (and rethrow inside a log write) โ€” each listener is now isolated.
  • SeaValidators.creditCard doc said "6โ€“19 digits" while the check enforces 13โ€“19; the doc was wrong and now says so.
  • SeaGlassRating.allowHalf removed โ€” declared, never implemented, never called. A parameter that does nothing is a trap.

iOS 27 conformance

  • SeaWebView โ€” Material LinearProgressIndicator โ†’ the glass SeaGlassProgressIndicator.linear; raw CupertinoNavigationBar (opaque slab, centred title) โ†’ SeaGlassAppBar (glass, iOS 26 left-aligned title); opaque bottom bar โ†’ translucent glass surface; every bottom-bar button is a 44pt target. Also fixed the share menu's Navigator.pop in the action callback โ€” since 0.6.4 the centred action sheet dismisses itself, so the extra pop closed the hosting page.
  • SeaRefreshWidget โ€” Material ClassicHeader/ClassicFooter โ†’ CupertinoHeader/CupertinoFooter. seaNoMoreText now maps onto the Cupertino footer's emptyWidget (the Cupertino footer has no text parameter).
  • SeaLoading โ€” showLoading / showProgress used an opaque black mask over the whole screen; now clear.
  • SeaGlassDebugPage โ€” raw CupertinoAlertDialog ร—2 โ†’ SeaGlassAlert, raw CupertinoActionSheet โ†’ showSeaGlassActionSheet (iOS 26 centred form), Material Divider โ†’ SeaGlassDivider.
  • SeaAuthPage โ€” the four secondary links hardcoded fontSize: 14 (not an iOS ramp size); now SeaTextStyles.callout. The header icon container's radius references SeaRadius.card.

Example

  • showcase_page.dart awaits Sea.servicesReady before reading device info (see above โ€” this is what surfaced the race on the physical device).
  • Demo kit and catalog remain the reference implementation: every public API has a home in one catalog list, and demo_kit.dart documents why each building block is shaped the way it is.

Verified, not changed: SeaFile.sharePaths / open let platform exceptions propagate โ€” that is the contract, not a missing try-catch: their return types are non-nullable, so a caller must be able to observe failure.

๐Ÿงช Tests & device run #

  • sea_layout_test.dart 20/20; review_shot_test.dart 44/45 (demo_display remains the documented sqflite environment failure).
  • Physical device run (Redmi K30i 5G, Android 12): boots clean, no Dart exceptions in the log, Impeller renders the glass surfaces, and the home screen now shows the real device model and app version after the servicesReady fix.

0.6.5 #

๐Ÿ› Six real bugs, found by auditing the widgets the last four rounds skipped #

The previous passes worked from screenshots of the demo pages. This one read the widget source and wrote probes against the framework to confirm each suspicion before changing anything โ€” which is how six genuine defects turned up, plus one report that turned out to be wrong and was left alone.

  • SeaDismissKeyboard never dismissed the keyboard. It guarded on focusNode.context.widget is TextField, but a FocusNode's context belongs to a Focus widget, never to the field that created it, so the check never matched and the listener always returned early. It was also testing for Material TextField in a library built on Cupertino. Now walks up to an EditableText ancestor, which covers Material and Cupertino alike, and SeaKeyboard.isOpen means "a text field has focus" instead of "something has focus" โ€” a button or switch no longer reports the keyboard as open.
  • SeaGlassAlert's action popped the hosting page. The pop was in the widget's build, but SeaGlassAlert is public and can be placed inline; an inline alert's action button navigated the user away from the page. The dismiss now lives in show(), where the route actually is โ€” the same shape SeaGlassDialog already used. show() also defaults to barrierDismissible: false, which is what UIAlertController does: an alert is answered, not swiped away. Behaviour change.
  • The notification's onDismiss fired after dispose. Both _dismiss() methods checked mounted before await controller.reverse() but not after, so a parent removing the notification mid-animation got a callback on a dead widget. The toast already re-checked; the notification pair had not.
  • SeaDatePickerMode.monthAndYear gave a day picker. It mapped to CupertinoDatePickerMode.date, so callers who explicitly asked for month + year got a day-of-month wheel they had ruled out. Now maps to CupertinoDatePickerMode.monthYear.
  • Carousel autoplay died on the first swipe, then accelerated. Autoplay was a bare Future.delayed chain: a step that landed during a drag returned without rescheduling, killing the chain permanently, while onHorizontalDragEnd started a second chain โ€” so the pages advanced twice as fast, then three times, with every swipe. Replaced with one cancellable Timer that always reschedules and is never restarted by the drag handler.
  • A single-expansion accordion left two tiles open. The group re-feeds initiallyExpanded: index == expandedIndex on every rebuild, but a reused State ignores initiallyExpanded by definition โ€” so tapping A then B left both open. SeaGlassExpansionTile gained an isExpanded parameter that makes it a controlled component, and the group drives that instead. Behaviour change (additive; initiallyExpanded still works standalone).
  • SeaGlassAvatarGroup ignored its own size. Row height and stack pitch were hardcoded 44, which happens to be medium, so a group of large (64) or xLarge (88) avatars overlapped into a blob. The sizeโ†’side mapping is now the top-level seaAvatarDimension(), shared with the avatar itself.
  • SeaGlassContextMenu: menuAlignment was declared as a Flutter Alignment and never forwarded, so the alignment a caller asked for had no effect; it is now the vendor's GlassMenuAlignment? (whose none means "choose from the trigger's position on screen") and is passed through. previewBuilder is gone โ€” CupertinoContextMenu has no such parameter, so it could never have rendered anything.
  • Smaller iOS-conformance fixes in the same family: the notification's close button was a 24pt tap target (now 44pt, SeaSizes.control); alert actions use minimumSize rather than the deprecated minSize, and get a full-width row so the tap target matches the row it fills.

Verified, not changed: SeaGlassContextMenu's Navigator.pop looks like a double-pop but is required โ€” CupertinoContextMenu only dismisses from its own drag/fling gesture (_ContextMenuRouteState._onDismiss), never from an action tap. Without it the menu would stay up after a selection. A probe confirmed the route's dismiss path; the comment in the source now says so, because this reads like a bug every time someone audits it.

๐Ÿงช Tests #

test/sea_layout_test.dart 13 โ†’ 20. The new ones assert the fixed behaviour, not the absence of a crash: an inline alert action leaves the page alone while show() still dismisses; SeaKeyboard.isOpen is false for a focused button and the background tap really unfocuses the field; a single-expansion accordion collapses the first tile (measured on tile height, since SizeTransition clips rather than resizes, so the body's intrinsic height is unchanged); an avatar group is exactly as tall as its avatars at every size; carousel autoplay keeps advancing after a drag.

example/test/review_shot_test.dart baselines regenerated (44/45 pass; demo_display remains the documented flutter_cache_manager/sqflite environment failure).

0.6.4 #

๐ŸŽจ iOS 26 overlays, alerts, and the silent dispose bug #

A fourth pass, prompted by an audit of every overlay and a hunt for exceptions that surface only on a real device. The overlay work is mostly "stop drifting from iOS 26"; the dispose fix is a real correctness bug that would have crashed production pages.

Overlays

  • The action sheet is now centred, the way iOS 26 presents it. Apple's WWDC25 "Build a UIKit app with the new design" session is unambiguous: when a sheet is not anchored to a button โ€” i.e. the normal case for a top-level "Share" menu โ€” it is a centred alert-shaped surface with a Cancel button, not the bottom slide-up drawer that has been there since iOS 13. SeaGlassActionSheet was that bottom drawer, and is now a thin wrapper over SeaGlassAlert: same width (SeaSizes.alertWidth, 270pt), same 28pt corner radius, same alert stack, plus a Cancel separator and an explicit SeaActionSheetStyle.bottom escape hatch for the screens that genuinely want the slide-up form. Visual change.
  • The alert family shares one number, finally. SeaGlassAlert, SeaGlassDialog, and SeaGlassPermissionPrompt each sized themselves independently โ€” 313 / 275 / 329pt โ€” so the same "are you sure?" prompt read as three different components depending on which wrapper opened it. They now all resolve to SeaSizes.alertWidth = 270pt, which is what UIAlertController lays its alert style out at. The permission prompt gets the same 28pt corner radius as alerts.
  • Alert actions are now 44pt tall โ€” a real tap target. The old CupertinoButton(padding: EdgeInsets.symmetric(vertical: 8)) worked out to about 33pt, which is below the 44pt platform minimum for a tap target, and on a destructive alert that is the one control that must not be missed. SeaSizes.control (44) is the floor.
  • SeaGlassAlert.showIcon โ€” opt out of the status icon for surfaces that aren't really "alerts". SeaGlassActionSheet uses this: a centred list of choices with a title has nothing to announce, and the title also left-aligns to match. Everything else about the surface is identical, which is the point โ€” the centred action sheet is an alert on iOS 26.

Bars

  • Compact bar titles are now left-aligned by default โ€” the iOS 26 shape. centerTitle defaulted to true everywhere (SeaGlassAppBar, SeaGlassNavigationBar, SeaGlassSmallTitleScaffold), which is the iOS 17โ€“18 convention. iOS 26 moved the title to the leading edge โ€” the same edge the back-button breadcrumb used to live on, which is why the breadcrumb was dropped. A centred title next to a circular icon-only back button is the loudest "this app has not adopted iOS 26" signal in the app. Default flipped to false; pass centerTitle: true only for screens that deliberately want it. Behaviour change.

Lifecycle bug

  • Late loads no longer touch disposed GetX controllers. A controller is reachable from Get.find(...) and from any captured closure for the rest of the process โ€” isClosed only flips on the Get.delete() path, not on the direct onClose / dispose() path that most of the example uses. The result was a setState() called after dispose() exception the first time the user re-entered a page that had fired a request. SeaGetPageMixin and SeaGetStatusMixin now set a _seaDisposed flag in their dispose hooks and guard every async callback (seaRefresh, seaLoadMore, seaOnError, seaLoadSuccess) with a _seaGone check. Behaviour change.

Tokens

  • SeaSizes.alertWidth = 270 โ€” the alert family width, sourced from UIAlertController.
  • SeaSizes.ratingStar = 28 โ€” the side of one star in a rating control. SeaGlassRating had hardcoded dimensions that bypassed the token system; fixed, and the rating row in the example demo no longer overflows.

๐Ÿงช Tests #

test/sea_layout_test.dart (13 โ†’ 17 tests):

  • the alert family shares one width โ€” SeaGlassAlert, SeaGlassDialog, SeaGlassPermissionPrompt all measure 270pt.
  • an alert action is a full tap target โ€” every action row is โ‰ฅ 44pt tall.
  • a compact bar title sits on the leading edge โ€” centerTitle: false puts the title to the left of the bar's leading edge.
  • an action sheet is centred, the way iOS 26 presents it โ€” its bounding rect is centred on the screen, not pinned to the bottom.
  • a late load does not touch a disposed controller โ€” fires an async load after dispose and asserts no setState after dispose exception is raised.

example/test/review_shot_test.dart is rebuilt as a comprehensive visual harness covering the root, every push_* route, every demo page, and every overlay (alert, dialog, action sheet, modal sheet, permission prompt, share sheet, selection sheet, toast, notification, context menu, popover, tooltip, menu). It hosts the real SeaApp, mocks the platform channels it requires, and overrides targetPlatform to iOS. 44 of 45 cases pass; demo_display is the documented baseline failure (flutter_cache_manager opens sqflite without the plugin registered in the test host).

0.6.3 #

โœจ Transparent system bars, the searchable tab bar, and the export gaps #

Finishes the iOS 26 pass. Two of the three items here are the same class of bug: a vendor type that appears in fast_sea's public signatures but could not be named by a caller, which makes the capability unreachable even though the wrapper "supports" it.

  • Both system bars are now transparent, explicitly. A page in this library paints its own background and floats everything above it, so a status-bar colour of any kind โ€” including Android's own contrast scrim โ€” draws an opaque band across the top of that background and makes the floating navigation bar look like it is under a lid. iOS has always been transparent, which is why this only ever showed up on Android. New SeaSystemUi resolves SystemUiOverlayStyle(statusBarColor: Colors.transparent, โ€ฆ, systemStatusBarContrastEnforced: false) and is installed by SeaApp, SeaGlassScaffold and SeaGlassPage. Only the icon brightness follows the theme. Visual change on Android. SeaGlassScaffold.statusBarStyle now selects the icon brightness only.
  • SeaGlassTabBar.searchable โ€” the iOS 26 search bar. Tapping the trailing island morphs the tab pill into a search field and collapses the tabs to the selected one; the results replace the body. This is the shape Apple replaced the top-of-screen search bar with, and it was unreachable before: the vendor's GlassTabBar.searchable existed, but GlassSearchBarConfig and SearchableBottomBarController were not exported.
  • SeaGlassTabBar.minimizable โ€” the scroll behaviour: the pill shrinks to the selected tab while the page scrolls and springs back when it stops. Also previously unreachable (GlassTabBarMinimizeController was not exported).
  • All three tab-bar shapes now share one set of iOS 26 metrics (barHeightPill 56, barVerticalPadding 8, labelSize 10, minimizedPillHeight 50), written once, so a caller cannot get the vendor's 104pt slab by choosing a different variant.
  • Five more vendor types are exported because they appear in fast_sea's own signatures and a caller therefore has to be able to name them: GlassStatusBarStyle and GlassScrollEdgeStyle (parameters of SeaGlassScaffold), GlassEffectTransition (SeaGlassNavigationShell), GlassMenuAlignment (SeaGlassMenu), GlassThemeData (SeaGlassConfig). The same gap was closed for GlassTabBarExtraButton in 0.6.2 and for GlassSearchBarConfig / SearchableBottomBarController / GlassTabBarMinimizeController here. GlassSheetMode / GlassSheetState were already exported for showSeaGlassModalSheet.
  • Example: the shell now uses SeaGlassTabBar.searchable โ€” the search field lives in the bar and the results replace the page (pages/search_results.dart) instead of pushing a separate search screen, which is what iOS 26 does. The standalone SearchPage route is gone.

๐Ÿงช Tests #

  • test/sea_layout_test.dart gains two: every SeaGlassTabBar shape reports the iOS 26 height (not the vendor 104pt), and both SeaSystemUi styles keep the bars transparent with inverted icon brightness.

0.6.2 #

๐ŸŽจ iOS 26 roundness and bar shapes #

A second pass over the example, this time against what iOS 26 actually changed rather than against the layout rules. Two of the library's assumptions were carried over from the iOS 17โ€“18 era and were quietly wrong.

  • The back button is now a circular, icon-only contained button โ€” the biggest correction. iOS 26 removed the back-button label: the chevron-plus-breadcrumb became a single contained icon button, the same shape as every other bar button. SeaGlassBackButton drew a wide "โ€น Previous" capsule, which is the iOS 18 affordance and, next to a centred title, the fastest way for a screen to look a release out of date. The previous title is not discarded โ€” it is the control's tooltip and accessibility label. showsTitle: true restores the capsule for an app that has not adopted the iOS 26 toolbar. Behaviour change.
  • Everything is rounder. iOS 26 is the roundest release yet โ€” "almost every interface element is now circular or pill-shaped" โ€” and the HIG raised the corner radius of most components. The radius tokens were tuned to avoid looking rounded (tile 12, card 14, on the reasoning that 20+ reads as Material), which also made every surface read as a web panel beside Apple's own. Now badge 12, tile 16, card 20, and sheet 28. Visual change across every surface.
  • Fourteen widgets had a hardcoded radius that bypassed the tokens โ€” alerts, permission prompts, share sheets, context menus, tooltips, notifications, date and colour pickers, toggle groups, the FAB, rating, countdown timer and expansion tile. They now reference SeaRadius, so the rounding is uniform and tunable from one file. Alerts and dialogs moved from 20 to SeaRadius.sheet (28): iOS 26 rounds modal surfaces more than any previous release.
  • SeaGlassSection passes an explicit shape. The vendor's 12pt superellipse was the de-facto grouped-section radius; a section is the surface users look at most, so it now carries SeaRadius.tile.
  • The tab bar was 104pt tall. GlassTabBar.bottom defaults to barHeight 64 with 20pt padding above and below โ€” a slab, not the compact capsule iOS 26 floats 8pt above the home indicator. SeaGlassTabBar now builds barHeightPill 56 with 8pt padding (72pt total), and labels at 10pt rather than 11pt. Pages need no change: they reserve clearance through SeaInsets / SeaBottomInset, which read the height the bar publishes.
  • Rows are taller. iOS 26 grouped rows carry more padding than iOS 18's. SeaGlassListTile raises the vertical inset from 12 to 14.
  • The trailing island is reachable. iOS 26 gives search its own circular island of Liquid Glass beside the tab pill. The library supported it through extraButton, but GlassTabBarExtraButton was not exported, so a caller could not name the type โ€” now exported, along with GlassExtraButtonPlacement and GlassExtraButtonPosition. The example uses it for a global search over the demo catalog, sized to the pill so the two float as a concentric pair.

๐Ÿ› iOS 27 page hierarchy and grouped-row fixes #

A layout pass over the example app โ€” every page, not just its spacing. The recurring theme: a fix that only corrects a number never corrects the shape of the screen, and the shapes here were wrong.

  • Grouped rows were centred, not left-aligned. GlassGroupedSection puts its children in a Column that keeps the default CrossAxisAlignment.center, so any row narrower than the card shrink-wrapped and floated to the middle of it. A full-width Row hides the bug; a label/description block does not โ€” which is how a section ended up with some rows flush left and others adrift. SeaGlassSection now gives every child a full-width constraint once, in one place, and passes GlassListTile through untouched so the vendor's divider-indent detection keeps working. This was the single largest visual defect in the library.
  • New SeaGlassSmallTitleScaffold โ€” pushed pages no longer get a large title. Large titles belong to the screen that owns the stack; everything reached by tapping opens with a 17pt centred bar title. Reusing the 34pt collapsible title on every sub-screen flattens the hierarchy, because the page you are on looks exactly like the page you came from. Pair it with SeaGlassLargeTitleScaffold.
  • New SeaGlassBackButton โ€” the back control names the previous page. iOS always answers "back to what?" in the control itself, and a bare chevron is the clearest sign a screen was laid out for another platform. The label travels on the pushed route's RouteSettings (SeaBackLabel), so it stays with the route; SeaNavigator.push(..., backLabel: 'Messages') sets it. Without a label the control degrades to the circular chevron iOS itself falls back to.
  • SeaGlassSection now renders its own header and footer. GlassGroupedSection styled them at 13pt/w400 inside a DefaultTextStyle that replaced the inherited one โ€” so the same header rendered differently depending on who passed it, and a theme font family was silently dropped. They now come from the fast_sea ramp (13pt semibold / 12pt) and merge over whatever the caller supplied. Visual change for any section that relied on the vendor's default header size.
  • SeaGlassListTile merges rather than replaces its text style, so it no longer discards the app's font family. Added SeaGlassListTile.chevron(context) as the single disclosure mark โ€” pages that hand-rolled their own Icon had drifted to a 12pt chevron in one place and a 16pt one in another.
  • SeaGlassAboutPage was a page with no navigation bar. It rendered a naked ListView with a hardcoded 32pt inset and parked a "Back" button under the copyright line โ€” the only way off the screen. It is now a SeaGlassSmallTitleScaffold with the back control where it belongs, tokenised spacing, and no stray button.
  • SeaGlassDebugPage drew its content under its own app bar. The body reserves space for the bars itself (extendBody), and SafeArea only knows about the status bar, so the 44pt bar went unaccounted for: the segmented control sat underneath it and the "Debug" title landed on top of the first segment. Now inset by SeaInsets.top, which reads the bar's measured height.
  • SeaAuthPage can carry a leading control (leading) so a pushed auth screen has a way back in the bar; the dialog variant keeps its own close button.
  • Example: DemoScaffold picks its title level per route, so all 14 catalog pages re-levelled at once; DemoNavTile moved its tinted icon to the leading edge (iOS groups rows on a leading icon, and switching it put two unrelated marks in the trailing slot); LanguagePage rebuilt from a full-bleed Material ListView.separated into one decorated grouped surface with hairline separators and a checkmark; AppShell observes the locale, so translated tab labels no longer stay as raw keys (tab_showcase) until an unrelated rebuild, and a language changed in Settings now reaches the bar.
  • Example fixes found while checking every page: the large-title demo nested a sliver inside a SliverToBoxAdapter (the exact contract its own caption warns about, and a hard build error); a bar was wrapped in a Row, which handed it an unbounded width; the measured-scaffold preview was 88pt tall for 148pt of bars, so the app bar and tab bar painted over each other; bar previews let the status-bar safe area push the bar's own content out of its box; the inline date picker passed a minimumDate of DateTime.now() evaluated after its initialDate, which trips Cupertino's own assertion.

๐Ÿงช Tests #

  • test/sea_layout_test.dart locks all four: a section child fills the card, the back button names the previous page, it degrades to a chevron without a label, and the small-title scaffold renders a 17pt title.

0.6.1 #

๐Ÿ› iOS 27 layout occlusion fixes #

The body scrolls behind the floating bars, so any page that does not reserve enough inset hides its last row under them. These were real defects, each now covered by a regression test.

  • The tab bar was 44pt taller than anything assumed. GlassTabBar.bottom builds its pill as barHeight + verticalPadding * 2 = 104pt (64 + 40), but SeaSizes.bottomBar and the old page spacers assumed 60pt. Every tabbed page was reserving 44pt too little, so its final section sat behind the bar. Fixed by removing the guesswork:
    • SeaBarMetrics / SeaBarMetricsScope โ€” SeaGlassScaffold publishes its measured bar heights; descendant pages read them through SeaInsets.
    • SeaInsets (page, bottom, top, gutter) โ€” insets resolved against the real view, including the home-indicator inset.
    • SeaBottomInset.slivers(context, [...]) โ€” reserves the trailing clearance once for a sliver list, replacing the hand-written SizedBox(kSeaGlassBottomBarHeight + 32) spacer that had to be kept in sync by hand (and never was).
    • SeaPageSliver โ€” the standard page gutter, so no page re-derives it.
    • SeaGlassTabBar.barHeight โ€” the real rendered height.
  • SeaGlassSection no longer applies its own 16pt margin. GlassGroupedSection defaults to horizontal: 16, vertical: 6, which stacked on top of the page's own inset and pushed grouped rows out to 40pt while the large title above them stayed at 24pt. Now zero by default so the page owns the gutter; pass an explicit margin for a genuinely nested group.
  • Status bar icons now follow the theme. statusBarStyle defaulted to GlassStatusBarStyle.none, which installs no AnnotatedRegion at all โ€” the icons kept whatever the last imperative SystemChrome call set, i.e. dark icons on a dark background in dark mode. The default is now GlassStatusBarStyle.auto. Behaviour change for SeaGlassScaffold and SeaGlassPage.
  • Pushed routes keep the iOS transition. Navigator.push(MaterialPageRoute(...)) loses the edge-swipe back gesture and uses a Material transition on iOS. New SeaNavigator (push, pushReplacement, pushGlass, pop, canPop) picks CupertinoPageRoute on Apple platforms.
  • The page gutter is now a single token, SeaSpacing.page (16), shared by SeaGlassSection, SeaGlassLargeTitleScaffold.largeTitlePadding, its subtitle and the toolbar controls โ€” previously each used a literal 24/8.
  • settings_page / file_demos_page converted to SeaPageSliver + SeaBottomInset; language_page now reserves the home-indicator inset instead of a flat 24.
  • Demo pages derive their back button from SeaNavigator.canPop, so a pushed demo gets one and a root tab does not.

๐Ÿ“ New tests #

test/sea_layout_test.dart asserts the last row of a page clears the tab bar at max scroll. Verified against the defect: with the old hard-coded spacer the row lands at y=828 under a bar whose top is at 706 (122pt of occlusion); with SeaInsets.bottom it lands at 690, a clean 16pt gap.

0.6.0 #

๐ŸŽจ Design tokens โ€” the foundation everything else normalises against #

  • New SeaSpacing / SeaRadius / SeaSizes / SeaMotion / SeaCurves / SeaOpacity (lib/src/theme/sea_tokens.dart). Previously lib/src/theme/ owned only colors and text styles, so every widget hard-coded its own geometry: 16 appeared in 28 files, 8 in 23, 12 in 16. These are now named tokens, and the glass presets reference them so a radius can only be tuned in one place.
  • SeaGlassStyle presets now derive their borderRadius from SeaRadius instead of repeating 20/32/28/16 as literals. A test asserts the two stay in sync.
  • SeaTextStyles gained callout (16), calloutEmphasized (16), footnote (14), footnoteEmphasized (14), micro (11), glassTitle, glassBody, glassCaption and colored(). 16 and 14 were the two most-used font sizes in the library and had no token. glass* resolve to the white-on-glass label colors, which the flat-background styles cannot express.
  • FeedbackKind replaces the two structurally identical SeaToastType / SeaNotificationType vocabularies at the theme level; SeaColors.forFeedbackType maps a kind to its color.
  • Behaviour change: SeaGlassCard.borderRadius default 10 โ†’ 20 (SeaRadius.card), matching SeaGlassStyle.card. Cards were the flagship surface and were the only geometry in the library that disagreed with its own preset.
  • Behaviour change: SeaGlassCard gained a settings parameter, so per-surface glass tuning is possible where it previously was not.

๐Ÿงฉ New high-frequency APIs (no new dependency except url_launcher) #

  • SeaClipboard โ€” copy, paste, clear, copyWithFeedback. SeaApp wires the toast so copyWithFeedback works without any setup. Reachable as Sea.copyToClipboard / Sea.readClipboard.
  • SeaHaptics โ€” selection, light, medium, heavy, success, error, vibrate, plus a global enabled switch. Six widgets were calling HapticFeedback.lightImpact() inline. Reachable as Sea.hapticSelection() etc.
  • SeaUrlLauncher โ€” open, openNewTab, email, phone, sms, maps, canOpen, openIfPresent, storeListing. url_launcher was promoted from a transitive dependency to a direct one. This unblocks SeaAppInfoConfig.privacyPolicyUrl / userAgreementUrl, which were declared but had no way to be opened. Reachable as Sea.openUrl / Sea.openMail / Sea.callPhone.
  • SeaKeyboard.dismiss + SeaDismissKeyboard widget โ€” background-tap dismissal. The most repeated boilerplate in a form screen.
  • SeaInputFormatters โ€” digitsOnly, digitsUpTo, alphanumeric, uppercaseAlphanumeric, decimal, phone, cardNumber, matching, maxLength, plus the composable UpperCaseTextFormatter / DecimalTextInputFormatter / PhoneTextInputFormatter / CardNumberTextInputFormatter. SeaGlassTextField.inputFormatters existed with no batteries to put in it. The decimal formatter clamps over-long input rather than discarding the keystroke.
  • SeaFormat โ€” timeAgo, formatDate, formatTime, formatDateTime, countdown, duration, number, compact, bytes, mask.
  • SeaValidators โ€” added length, minLength, maxLength, numeric, integer, range, url, phone, creditCard (Luhn), idNumber (ISO 7064 MOD 11-2), regex, strongPassword, pastDate, and the boolean predicates isValidUrl / isValidPhone / isValidCreditCard. Existing signatures are unchanged.

๐Ÿ› Fixes #

  • SeaThrottle now has a trailing edge. It was leading-edge only with no dispose(), so the last call in a burst was dropped โ€” which stalls a "load more at the end of the list" handler. Added trailing: false to opt out, plus dispose(). Behaviour change: a throttled call inside the cooldown now eventually runs; previously it was discarded.
  • SeaFormat.timeAgo rounds to the nearest unit instead of truncating, and handles future timestamps (in 5m). A timestamp exactly 48 hours out previously rendered "in 1d". SeaDateTimeExt.timeAgo now delegates to it, so the two cannot disagree. Behaviour change: a time within 30s of a unit boundary may now render in the nearer unit.
  • SeaAnalytics.init({app}) now honours app via FirebaseAnalytics.instanceFor instead of ignoring it. SeaFirebaseConfig.app is therefore live rather than dead.
  • SeaFirebaseConfig.app / SeaSupabaseConfig.locale / SeaGlassConfig.*Gradient / SeaAppInfoConfig.appName were accepted and then discarded. app and appName are now read.
  • The loading overlay is repainted on theme change and picks up a custom primaryColor. It was hard-coded to light colors, so a light spinner sheet stayed white over dark UI.
  • SeaDevice.webInfo is no longer declared-but-always-null on non-web builds.
  • Removed the VoidCallback typedef from sea_debounce.dart, which shadowed dart:ui's and made importing both an ambiguity error.

๐Ÿ”Œ Proxy completeness โ€” Sea.* now reaches the whole service API #

The hand-written proxies had drifted: 60+ public service members had no proxy twin, so they were unreachable from the Sea. facade even though the service exported them. No signature changed โ€” this only makes existing service API reachable. The worst cases:

  • Sea.http could not put / patch / delete / download / upload, and had no access to dio or addAuthInterceptor โ€” so the natural pairing of Sea.file.saveToDevice + Sea.http.upload was impossible. All verbs, interceptors and transfer methods are now forwarded.
  • Sea.log lost configure, setLevel, and the entire history ring buffer that SeaGlassDebugPage renders.
  • Sea.storage lost setJson/getJson/setObject/getObject โ€” the only way to persist a model.
  • Sea.connectivity lost both onConnectivityChanged and listen, so offline handling was impossible through the facade.
  • Sea.analytics kept 6 of 19 members; every commerce and engagement event was invisible.
  • Sea.supabase lost client, auth, from and storage.

๐Ÿงน Dead code removed #

SeaSimpleLog (a second logger with independent state), SeaAppExtensions (statics on an extension, unreachable via an instance).

๐Ÿ“ฆ Exports #

GlassSheetState and GlassSheetMode are now exported. They are parameters of showSeaGlassModalSheet, so a caller had no way to name them without importing liquid_glass_widgets directly โ€” which the example had started doing, breaking its single-dependency property.

๐Ÿ–ผ Example: complete API catalog #

Rebuilt as 14 demo pages under example/lib/demo/, all sharing demo_kit.dart (DemoScaffold / DemoSection / DemoRow / DemoNavTile / DemoCode / DemoResult), so every page has identical layout, gutter, section spacing and bottom-bar inset. DemoCatalog is the single list that drives the catalog page and the page count.

Coverage: theme & tokens ยท basics ยท buttons ยท inputs ยท feedback ยท overlays ยท messaging ยท display ยท navigation ยท services ยท platform ยท network ยท utils ยท advanced. Each page documents when to reach for an API, not just what it is. overlays_demo_page compares the four overlapping bottom-sheet APIs side by side; messaging_demo_page compares the three messaging channels.

Superseded components_page.dart (749 lines) and extra_demos_page.dart (541 lines) were removed โ€” their content is now split across the focused pages, and they had no remaining references.

0.5.0 #

๐Ÿงญ SeaGlassLargeTitleScaffold โ€” iOS 27 Large Title โ†’ Glass Toolbar #

  • Global glass quality config โ€” new SeaGlassConfig.quality (set once on SeaApp); SeaGlassTheme.globalQuality applies to every fast_sea glass surface (SeaGlassContainer, SeaGlassButton, the toolbar capsule). No per-widget quality configuration; GlassQuality is now exported from fast_sea.dart. null (default) lets the adaptive quality scope decide per device. The example sets GlassQuality.standard

  • Full native transition chain โ€” Large Title โ†’ scroll collapse โ†’ floating Glass Toolbar โ†’ Compact Title โ€” built on liquid_glass_widgets' official machinery: a self-measuring GlassLargeTitle sliver drives a GlassLargeTitleController, and the toolbar reads the same controller for its animation. No opaque-bar switch, no BackdropFilter, no if (offset > x) jump; reverse scrolling restores the large title because every visual is a pure function of the scroll offset

  • Two-layer toolbar (iOS 27 native behaviour) โ€” [leading]/[actions] controls are always visible pinned below the status bar (like the always-on glass buttons of iOS system apps); the edge-to-edge glass bar (full-bleed, spanning status bar + toolbar area) and the centred compact title materialise together with ease-out from collapseProgress and are IgnorePointer-transparent at rest

  • Status-bar overlap fixed โ€” an explicit top spacer sliver (safeTop + toolbarHeight) pushes the large title below the status bar/toolbar area, matching a native large-title page

  • New subtitle parameter โ€” optional App Store-style line under the large title, scrolling away with the content

  • background is now opt-in โ€” the scaffold no longer injects a default SeaGlassBackground, so embedding it as a tab page inside a SeaGlassScaffold shell no longer stacks two glass backgrounds; standalone routes pass background: SeaGlassBackground() explicitly

  • Perf: the glass capsule is built once per scaffold build; scroll ticks only update the cheap Opacity wrapper via ListenableBuilder โ€” the glass surface is never recreated per frame

  • Android runtime fixes (found via device logs):

    • Toolbar capsule now renders with useOwnLayer: true โ€” per-widget settings are ignored in grouped mode, which is why they never applied
    • Toolbar uses quality: GlassQuality.standard (a 44pt bar gains nothing from premium; premium is what blew the 16 ms raster budget on pre-A15 GPUs)
    • SeaGlassContainer gains a quality pass-through and only forwards settings when useOwnLayer is set โ€” grouped mode ignores them anyway, and forwarding them made LiquidGlassWidgets emit a warning per widget per build
    • SeaGlassButton gains useOwnLayer/quality and mirrors the same grouped-aware settings pattern (kills the per-button warning spam; zero visual change โ€” the settings were ignored)
  • Added class documentation covering the transition chain, the controller ownership/dispose contract, and shell-embedding

  • Example home (showcase_page) uses the scaffold with subtitle and toolbar actions; the hardcoded Auth & About section title is now localized (showcase_auth_about in en/zh)

๐Ÿ“ Files & Cache โ€” Sea.file #

  • New SeaFile service (lib/src/services/file/sea_file.dart) โ€” unified file directory, picking, camera, save, share, open and cache management
  • Unified directory โ€” everything lives under <docs>/fast_sea/{files,cache}, organised by kind (images/, videos/, audio/, documents/, others/)
  • Picking โ€” pickFile/pickFiles, pickImage(s), pickVideo(s), pickAudio(s), pickMedia, pickDirectory (file_picker 13)
  • Camera & gallery โ€” takePhoto, takeVideo, pickImageFromGallery, pickVideoFromGallery, pickMultipleMedia (image_picker 1.2)
  • Save / share / open โ€” saveToDevice, saveBytesToDevice, saveAs (file_saver), sharePath(s), shareResults, shareText (share_plus 13), open (open_filex)
  • Cache API โ€” cacheSize(), filesSize(), totalSize(), sizeOfDirectory(), clearCache(), clearFiles(), clearKind(), clearAll(), formatSize()
  • SeaFileResult โ€” path, displayName, size/sizeText, mimeType, SeaFileKind, ready-to-use XFile
  • SeaFileConfig โ€” rootFolderName, copyPickedFiles, useTemporaryForCache; auto-init via SeaServicesConfig.autoInitFile
  • New deps โ€” file_picker, image_picker, path_provider, file_saver, share_plus, open_filex, mime, path, uuid, cross_file
  • GetX re-exported from fast_sea.dart, so apps need only one dependency

๐Ÿ–ผ Image โ€” SeaImageWidget #

  • New SeaImageWidget (lib/src/widgets/display/sea_image_widget.dart) โ€” ported from fast_code's FastImageWidget
  • Auto sizing โ€” set height or width plus a ratio (height / width) and the other dimension is derived
  • Source detection โ€” assets/โ€ฆ & packages/โ€ฆ โ†’ Image.asset, /โ€ฆ & file://โ€ฆ โ†’ Image.file, otherwise CachedNetworkImage
  • Overlay โ€” stackBuilder(width, height) receives the resolved size
  • Extras โ€” border, borderRadius, alignment, cacheKey, cacheRatio (disk/memory cache = ratio ร— screen size)
  • New dep โ€” cached_network_image ^3.4.1 (4.x needs Flutter >=3.44)

๐Ÿ”ง Fixes #

  • Fix sea_get_status_mixin.dart (missing Flutter import) and sea_get_refresh_widget.dart (wrong relative import) โ€” both failed to compile
  • Fix locale asset base path: default is now packages/fast_sea/assets/locale with a bare-path fallback
  • Fix tool/gen_locales.py writing to the old lib/assets/locale location
  • Raise environment to sdk ^3.11.0 / flutter >=3.41.0 (the real floor already imposed by liquid_glass_widgets)
  • Bump device_info_plus โ†’ 13.2.0 and package_info_plus โ†’ 10.2.1 to unblock share_plus 13 (win32 conflict)

๐Ÿ› Audit fixes (dialogs / mixins / exports)

  • Fix SeaGlassDialog.show never dismissing โ€” GlassDialog does not auto-pop, and combined with barrierDismissible: false an action could leave the dialog on screen forever. Actions are now wrapped so the dialog pops first; added SeaDialogAction.result so show<T>() actually returns a value, made onPressed optional and barrierDismissible configurable
  • Fix ambiguous_export โ€” SeaCallback was declared in both sea_refresh_widget.dart and sea_get_refresh_widget.dart; the GetX widget now re-uses the canonical typedef
  • Fix unhandled async errors in the pagination mixins โ€” SeaPageMixin / SeaGetPageMixin seaOnError re-threw while onInit() calls seaRefresh() unawaited. Both now match the status mixins (log + set error state, no rethrow) and take Object e
  • Export the orphaned GetX APIs โ€” SeaGetPageMixin, SeaGetStatusMixin and SeaGetRefreshWidget were advertised in the changelog but never exported (unreachable)
  • Fix a redundant ! in SeaLocaleService.loadLocale

๐Ÿ“ Layout / iOS 27 style

  • SeaGlassScaffold now passes through the full GlassScaffold layout API โ€” it previously hard-coded extendBody: false (which silently disabled the iOS 26/27 soft scroll-edge fade and stopped content scrolling behind the bars) and dropped settings, edgeStyle, header, bodyOverlays, contentAwareBrightness, bar heights, etc. extendBody now defaults to true (the canonical Liquid Glass look) and every knob is exposed
  • SeaGlassTabBar now implements PreferredSizeWidget โ€” it was a plain StatelessWidget, so GlassScaffold could not measure it and fell back to a hard-coded 60pt, making the bottom edge-fade/inset maths wrong whenever the bar grew (extra button, search variant)
  • Added kSeaGlassBottomBarHeight for insetting scroll content above the floating bar
  • Example: removed the duplicated SeaGlassBackground from the four tab pages (the shell already provides one โ€” stacking two glass backgrounds is wasted compositing) and inset tab content so the last row clears the floating tab bar

๐Ÿ“š Docs #

  • New doc/FILE_MODULE.md โ€” full file/cache API reference and package notes
  • New doc/ARCHITECTURE.md โ€” layering, "how to add a service", review findings
  • README: new "Files & Cache" section + SeaFileConfig reference

๐Ÿงฉ Example โ€” reusable starting template #

  • example/ is now a copy-paste iOS 26 Liquid Glass starter covering every fast_sea case
  • example/lib/main.dart โ€” SeaApp entry; no manual init โ€” storage/device/file/locale are auto-initialised and AppSettings.restore (wired to SeaServicesConfig.onReady) re-applies the saved theme + locale before the first frame
  • example/lib/app/app_settings.dart โ€” persisted ThemeMode + Locale via Sea.storage (the template's persistence layer)
  • example/lib/app/app_shell.dart โ€” iOS-style glass SeaGlassTabBar shell (Showcase / Files / Settings)
  • Pages: home_page (full component + service showcase), file_demos_page (Sea.file), language_page (all locales), settings_page (theme/lang/cache/about), extra_demos_page, liquid_glass_demos_page
  • example/test/app_settings_test.dart โ€” locale encode/decode + display-name coverage (SeaApp can't be widget-tested: liquid_glass_widgets loads via flutter: shaders:)
  • example/README.md โ€” "Use this example as a starting template" guide (skeleton = main.dart + app/)

๐ŸŒ i18n / Internationalization #

  • SeaLocaleService โ€” Complete i18n solution built on GetX translations with lazy JSON loading
  • SeaLocaleConfig โ€” Configure locale, fallbackLocale, supportedLocales, assetBasePath, extraTranslations in SeaApp
  • SeaLocales โ€” 300+ supported locales with native display names (SeaLocales.localeDisplayName()) โ€” covers all world languages
  • SeaTranslations โ€” GetX Translations implementation for GetMaterialApp
  • Lazy loading โ€” Only loads the JSON for the current locale, not all at once
  • Built-in JSON โ€” en_US, zh_CN, zh_TW, ja_JP, ko_KR, es_ES, fr_FR, de_DE with 160+ common/auth/time keys
  • User extensible โ€” addTranslations(), loadLocaleFromAsset(), loadLocaleFromJson()
  • Parameterized strings โ€” @key placeholders: Sea.locale.tr('time_minutes_ago', params: {'count': '5'})
  • Runtime switching โ€” Sea.locale.changeLocale(Locale('ja', 'JP')) with reactive currentLocale
  • Unified API โ€” Sea.locale.tr(), Sea.locale.changeLocale(), Sea.locale.currentLocale, etc.
  • Removed easy_localization โ€” Replaced with GetX-native translation system

๐Ÿ”ง Method Naming #

  • All mixin/widget methods now use sea prefix: seaLoadData, seaRefresh, seaLoadMore, seaOnError, seaDataAdded, seaErrorWidget, seaEmptyWidget, seaLoadingWidget

๐Ÿ— GetX Mixins #

  • SeaGetStatusMixin โ€” mixin SeaGetStatusMixin on GetxController with update() instead of setState
  • SeaGetPageMixin โ€” mixin SeaGetPageMixin<T> on GetxController for paginated data with GetBuilder
  • SeaGetRefreshWidget โ€” SeaGetRefreshWidget<C extends GetxController> combining GetBuilder<C> + SeaRefreshWidget

0.4.0 #

๐Ÿš€ API Simplification #

  • SeaApp โ€” One widget replaces SeaInit.init() + SeaAppBuilder. All configuration in constructor.
  • Sea โ€” Unified API class: Sea.theme, Sea.config, Sea.showLoading(), Sea.loadingTask(), Sea.showSuccess(), etc.
  • SeaThemeController โ€” Sea.theme.toggle() / setLight() / setDark() / setSystem() with reactive Obx support.
  • SeaConfig โ€” Centralized config via Sea.config, auto-initialized by SeaApp.

๐Ÿซง New Glass Widgets #

  • SeaGlassNavigationShell โ€” GlassNavigationShell wrapper for glass page transitions.
  • SeaGlassPage โ€” GlassPage wrapper with background sampling and status bar style control.
  • SeaLiquidGlassScope โ€” LiquidGlassScope wrapper for glass color absorption.
  • SeaGlassProgressiveBlur โ€” GlassProgressiveBlur gradient blur overlay.
  • SeaGlassButtonGroup โ€” GlassButtonGroup segmented icon button group.
  • SeaGlassContainer โ€” GlassContainer generic glass container with customizable radius.
  • SeaGlassPageControl โ€” GlassPageControl dot indicator for PageView.
  • SeaGlassMaterialize โ€” GlassMaterialize fade-in/out animation wrapper.
  • SeaGlassMenu โ€” GlassMenu popup menu with glass effect.
  • SeaGlassPopover โ€” GlassPopover glass popover with flexible content.
  • SeaGlassPullDownButton โ€” GlassPullDownButton pull-down action menu.
  • SeaGlassPasswordField โ€” GlassPasswordField password input with visibility toggle.
  • SeaGlassFormField โ€” GlassFormField labeled form field wrapper.
  • SeaGlassTextArea โ€” GlassTextArea multiline text input.
  • SeaGlassActionSheet โ€” showSeaGlassActionSheet() with title/message/barrierDismissible.
  • SeaGlassModalSheet โ€” showSeaGlassModalSheet() modal bottom sheet with drag handle.

๐ŸŽจ Theme & Style #

  • Default ThemeData โ€” SeaApp provides default lightTheme/darkTheme with proper CupertinoThemeData and ColorScheme.
  • Theme switching โ€” Reactive theme toggle via Obx, works instantly.
  • SeaGlassBackground โ€” Supports lightGradient, darkGradient, glowBlobs customization.

๐Ÿž Toast & Loading #

  • iOS 26 glass style โ€” Toast and loading use glass effect with 80% opacity white background.
  • Toast clickable โ€” Toast overlay allows interaction with underlying page.
  • Loading non-clickable โ€” Loading overlay blocks interaction (black mask).
  • Sea.loadingTask โ€” Async task wrapper: Sea.loadingTask(task: () => asyncOp(), error: (e) => handleError(e)).

๐Ÿ“ฑ Demo App #

  • 5-tab demo โ€” Showcase, Widgets, Input, Feedback, Settings.
  • 46+ components โ€” All liquid_glass_widgets components wrapped and showcased.
  • Theme switching โ€” Light/Dark/System toggle in Settings tab.
  • Glass background โ€” Gradient + glow blobs background on all pages.

๐Ÿ“ฆ Dependencies #

  • Updated liquid_glass_widgets to ^1.3.0.
  • Added cupertino_icons for icon support.
  • Updated repository URL.

0.1.0 #

  • Initial release of fast_sea.
  • Theme: SeaColors, SeaColorScheme, SeaTextStyles, SeaGlassStyle, SeaGlassTheme with light/dark support.
  • Glass Widgets (wrapping liquid_glass_widgets 1.3.0):
    • Layout: SeaGlassScaffold, SeaGlassBackground
    • Navigation: SeaGlassNavigationBar, SeaGlassLargeTitle, SeaGlassTabBar, SeaGlassTab
    • Container: SeaGlassCard, SeaGlassSection, SeaGlassListTile, SeaGlassDivider
    • Interactive: SeaGlassButton, SeaGlassIconButton, SeaGlassSegmentedControl, SeaGlassSwitch, SeaGlassSlider, SeaGlassBadge, SeaGlassChip, SeaGlassStepper, SeaGlassToolbar
    • Input: SeaGlassTextField, SeaGlassSearchBar, SeaGlassPicker
    • Feedback: SeaGlassProgressIndicator
    • Overlay: SeaGlassDialog, SeaDialogAction, SeaGlassSheet, SeaGlassSheetHeader, SeaGlassToast, SeaToastType
  • HUD: SeaHUD โ€” toast, loading, progress, success/error/info via flutter_easyloading.
  • Refresh: SeaRefreshWidget โ€” pull-down refresh and pull-up load more via easy_refresh.
  • Pagination: SeaPageMixin<T, F> โ€” mixin for paginated data loading.
  • Ads: SeaAdsWidget, SeaAdsProvider โ€” Banner, Interstitial, Rewarded, AppOpen ad support via google_mobile_ads.
  • State Management: GetX integration via get.