fast_sea 0.9.7
fast_sea: ^0.9.7 copied to clipboard
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 #
SeaGuidePageis the shared usage/FAQ page:SeaGuideSteprows, FAQ tiles viaSeaGlassExpansionTile, 51 built-inguide_*locales and optionalsteps/faqs/extraSteps/extraFaqs.showUsage/showFaqhide a section;useBuiltInContent: falsedrops the common copy entirely. The FAQ section no longer sits inside a secondSeaGlassSectionglass layer.- The help entry lives in the settings page's top-right corner via
SeaGlassSettingsPage.helpAction(context); home pages no longer carry a?. SeaSplashPageshows the configured app icon on white at 80% of the short edge, waitsminDuration(default 700 ms) and replaces itself withnext. No app-open ad, no spinner.SeaLanSharePageandSeaLanShareSettingsTiles.buildSection(context)are the ready-made LAN UI: live URL, password, exposed folders and QR card. Both accept aqrBuilderoverride.
๐ LAN sharing and built-in QR #
SeaLanShareis a generic LAN HTTP server: configure once (appId,storageKey,port, a directories callback,title) and callload()afterSeaAppis ready.enabled/url/port/password/failureare value notifiers;setEnabled,setPortandsetPasswordpersist state. Password changes invalidate every cookie session.SeaLanSharePortkeeps 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 ownQrImageViewcall.SeaQrCodeCardstill forces the white card and quiet zone cameras need.
๐ Local database and determinate progress #
SeaDatabasewraps sqflite; files land at<cache>/sea/<name>/db/<name>.db.open/pathFor/deleteDatabaseFileplusinsert/query/update/deleteRows/transaction/count;dbremains available for raw SQL.Sea.loading.progressTask()(and the flatseaProgressTask()) draws a global determinate HUD fromValueListenable<double> progressand an optionalValueListenable<String> phase, withphaseText,message,onCancelandcancelLabel. It shares the clear-mask barrier and nesting count oftask(). The top-levelSea.progressTask/Sea.loadingTaskare deprecated.
๐ Firebase: Crashlytics on by default #
SeaFirebaseConfig.crashlyticsand.crashlyticsCollectionEnabledboth default totrue. Passing Firebase options toSeaAppnow also installs the Flutter error forwarder throughSeaLog; no app-sideFlutterError.onErroris needed.Sea.crashlyticsexposesrecordError,log,setUserIdentifier,setCustomKey,didCrashOnPreviousExecution,isInitializedandinstance.SeaAnalyticsRouteObserveris attached unconditionally and forwards events lazily once Firebase is live, so the first page is not lost.
๐ซง Glass and interaction polish #
SeaGlassConfig.qualitydefaults toGlassQuality.minimaland is written once toSeaGlassTheme.globalQualityfor every surface. Apps may opt intostandard/premium;nullrestores adaptive quality (not recommended). Theme changes suspend adaptive measurement for 600 ms so a repaint cannot permanently downgrade the app.SeaGlassSegmentedControlswitches past four labels to scrolling glass blocks (asBlocks,hasMoreTabs,onLoadMoreTabs,loadMoreThreshold,height); selection tints the block instead of filling it.SeaGlassSelectionSheetsupportsonLoadPrevious,startIndexand ajumpTolistenable that scrolls by global index; single-selectshowSingle(closeOnSelection: true)pops as soon as a row is tapped.- Bottom sheets use
useSafeArea: trueon iOS, keeping the card clear of the Home Indicator;SeaGlassSheetScaffoldno longer adds a second bottom safe area. Dialog titles accept a custom colour and actions put the primary operation above Cancel. SeaGlassSettingsPagegainsactions,buildCoreSections,translucentIcons,leadingand a banner slot;SeaFileManagerPagegainsbrowseRoot(folder drill-down + breadcrumbs), search and richerSeaFileEntryfields (isDirectory,folderCount,fileCount,totalBytes). Capsule field height is unified at 46 pt.
๐ Files and configuration #
Sea.file.saveToDownloads(subFolder:)writes intoDownload/<downloadsFolderName>/<subFolder>/; the sub-folder is cleaned of leading/trailing slashes and...SeaFile.downloadsAppFolderis now a getter backed bySeaFileConfig.downloadsFolderName(defaultSeaFiles).- 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.removeAdsdefaults tokDebugMode. - 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.mddocumentssaveToDownloads(subFolder:)andSeaFileManagerPaths.
๐ Four corners, not one diagonal #
SeaGlassBackgroundnow 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 singleLinearGradientand the dots are constants: noLayoutBuilder, noMediaQuery, 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
drawImageRectis 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/glowBlobskeep working as before.
0.9.6 #
๐งฐ Three screens ship whole โ settings, file manager, QR #
SeaGlassSettingsPageis 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 fromSeaAppInfoConfig) come built in, and the app's own groups go on top asappSpecificSections. 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 ownSeaPage.SeaFileManagerPagebrowses 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.SeaQrCodeCardframes 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()andSeaAdsWidget.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 itsmarginonly once an ad is really on screen, so a caller never wraps it inPaddingthat outlives the ad.showInterstitialcallsonClosedexactly 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.
SeaAppPageandSeaGlassSettingsPagereserve it and fill it themselves (bannerSize: AdSize.bannerby default,nullto disable, an explicitbanner:wins). Two bugs it removes: addingSeaAdsWidget.banner()tochildrenstacked a second ad under the slot, and passing a differentbannerSizeper page made one app mix 320ร100 with 320ร50. SeaAdsPolicyis the merged result of the remoteadsblock and theadsConfigpassed toSeaApp: 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.SeaRouteAdsObserveris installed bySeaApp; 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 countsfullscreenDialogroutes.
๐ก 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,launchesanddaysSinceInstall;Sea.hasRemoteConfigsays whetherSeaAppregistered 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()andfeatureBool/String/Numberhelpers were removed, and the hostedconfig/<app>/latest.jsonfiles were deleted. Seedoc/BUNDLED_CONFIG.md.SeaMessageCentershows 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.SeaRatingPromptis the launch-time ask: count, last-prompt time and "already rated" live in local storage, thresholds and copy come from theratingblock, 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_plusdeletes thetempFilePathit 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.downloadsAppFolderlost its leading slash โ the plugin buildsRELATIVE_PATH = "Download/" + appFolder, so'/SeaFiles'becameDownload//SeaFiles, which MediaProvider rejects; files landed inDownload/(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: falsedrops the stamp entirely.SeaLogEntry.formatDateis the same formatter, for the debug page. - iShare's logger is now a thin shell over
SeaLog. It used toprint()bare lines with no clock and no level marker; it now delegates toseaLogd/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, thegeneralinstance) is unchanged โ 269 call sites keep compiling. ItslogLevelmoved fromerrortodebug, 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.enableddefaults tofalse.Sea.haptics.enabled = trueopts the whole app back in; while false, every method returns before touching the platform channel. This also silences app code that callsSea.haptics.selection()(e.g. a tab handler) without editing the app.- No widget calls
HapticFeedbackdirectly any more.SeaGlassFAB,SeaGlassRating,SeaGlassToggleGroup,SeaGlassExpansionTileandSeaGlassColorPickerticked throughHapticFeedback.lightImpact()straight from their gesture handlers; they now go throughSeaHaptics.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 totrue, which is why every dialog tapped once.SeaGlassSheet,SeaGlassModalSheet,showSeaGlassSheetandshowSeaGlassModalSheetnow passenableInteractionGlow: 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.optionsacceptsDefaultFirebaseOptions.currentPlatform.SeaAppthen callsFirebase.initializeApp(options: โฆ)itself, so a FlutterFire-generated project no longer has to initialise Firebase beforerunApp. Init routes, in order: a pre-builtappis reused; otherwiseoptions; otherwise Firebase resolves the native config files.SeaFirebaseConfig.onAppReadyโ a callback method invoked with the liveFirebaseApp, and awaited, soSea.servicesReadydoes not complete while a handler is still bringing messaging / remote config up. It may beasync;onReady(VoidCallback) still fires afterwards.SeaAnalyticsis 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.
SeaGlassSheetActionTiletherefore takes aselectedFill: 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. AnyAnimated*colour that fades toColors.transparenthas 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
SeaSpacingandSeaSizesnow (control44 for the header row,barButton34 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/lginsets,title3+subheadline. - Selection rows are wider, and line up with the bottom button. The list added its
own
lggutter on top of the scaffold's, so every row sat 16pt inside the button. The scaffold gainedcontentInset(selection sheets passsm), 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:
SeaSelectionItemgainedkeywords, text the sheet matches on but never draws, so typingzh_Hanskeeps working. - Every text field is a capsule by default.
SeaGlassTextField.capsulenow defaults totrue: 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 โ andcapsule: falsestill 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:anddoneLabel: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 defaulttoolbarHeightofSeaGlassAppBar,SeaAppPageandseaPage();SeaSizes.largeTitleExtentโ 71, the defaultmaterializeExtent(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) runsonRefreshon the way in, and the first frame is already a loading one โ the mixins'initStatebehaviour, moved where the state can see it.autoLoad: falseis the escape hatch for a controller that still refreshes from its ownonInit. - 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
nullis 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/emptystay as overrides for a page that knows better than its callbacks. onRetrydefaults toonRefreshโ 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'sobsfield is one widget instead of a lookup plus anObx.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 staysconst.SeaPageState<T>is public, so a page that needs a lifecycle writescreateStateand overridesbuildon the state, withcontrolleralready 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
HeaderLocatoris 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. headerRoomis 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'striggerOffsetis damped bykCupertinoFrictionFactor) and the header box is 31pt tall, so the gap fits exactly one indicator;SeaSpacing.sm(8) is enough, andSeaSpacing.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 plainObxdoes 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.
SeaObsonly reaches the page's own controller, so anObxon 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 ofSeaAppPageand means the same thing by each; theSeaPageScopeis wrapped around what it returns, sobuildcan return it directly and the page's content is still inside the scope.SeaPageState.buildis the primary entry.SeaPage.buildPage(context, page)stays as the other one, for a page that would rather remain aconstwidget 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.seaControlleris joined bycontroller, 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
0would 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
seaNoMoreis left alone, so the list the reader is halfway down is not blanked and pulling again retries the same page. seaHasMoreis asked beforeseaPagemoves 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 ahasMoreflag or a cursor overrides it.- One load at a time. A second load-more would repeat the same page and add it twice.
seaItemKeydrops 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
onClosestill ends, but does not notify.update()on a disposed controller throws. seaLoadMorebefore anyseaRefreshreplaces 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 โ whereBouncingScrollPhysics, the platform, damps at0.52. Roughly half, so the same finger travel opens half as far; safeAreaadds the status-bar height totriggerOffseton 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/loadPageAddisposed nothing when the caller'sBuildContextwas unmounted by the time the ad finished loading โ the creative was loaded, never shown and never released. Both paths nowdispose()the ad instead of showing it into a dead context._onAppForegroundcomputed 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_lastAppOpenAdTimeexisted for.
๐งน Reusability polish #
SeaApiError.tokenExceededhard-coded the backend codeAI_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.SeaGlassTooltipmeasured its overlay with magic numbers (left: 16,top: โฆ + 60,SizedBox(width: 8)); the gaps now come fromSeaSpacing/SeaInsets, so a themed gutter moves the tooltip with it.Sea.dismissKeyboardcarried two stacked@Deprecatedannotations 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:
styledefaults toSeaAppPageStyle.compactโ most pages are reached by tapping โ solargeis the one thing a root page asks for, and everything else passes nothing.titleis 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');
-
styleis 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 noleadinggets a back button when it can pop. -
childrenjoinsslivers. A column of sections is what pages almost always are, so the page now builds it: gutter per child,childGapbetween them, and the trailing clearance a floating bar needs, all viaSeaPageSliver/SeaBottomInset.sliversstays 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. -
subtitleandsearchBarmean 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. -
materializenow applies to both:falsedrops 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 fortrailing. Cross-axisstart, so a chip keeps its width and a slider fills the row. Plusdense, and the already-existingSeaGlassListTile.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 scalingLiquidGlassSettings.visibility. Visibility is the single input everyeffective*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 ownGlassMaterializeScopescales, 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
LiquidGlassSettingssilently reset every field the bar did not name, so a materialised bar was a different glass from the rest of the app โsaturation1.5 rather than the theme's 1.1,shadowElevation1.0,standardOpacityMultiplier1.0. A bar at full strength is now exactly the app's glass, asserted by equality againstSeaGlassTheme.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
visibilityis 0.0 at rest with everyeffective*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
Materialanywhere above them, then again inside a bareCupertinoAppand a bareMaterialApp: zero "No Material widget found", overlays and dialogs included. Nothing depends onMaterial.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
Textwith no family of its own โ they merge onto the ambientDefaultTextStyle, which the wrapper had been supplying. Comparing the two builds inside aCupertinoAppshows the difference plainly: with the wrapper the label takes Material's Roboto inside an iOS host; without it, it takesCupertinoSystemText, 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:
showCupertinoDialogfades its whole route in with aFadeTransition, 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.- 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
showSeaGlassModalSurfacepresents any glass modal throughGlassMaterializeTransition, 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 withglassEffectTransition(.materialize), the shape resolving first and the content sharpening last. SeaGlassAlert.show,SeaGlassDialog.show,SeaGlassDialog.showConfirmandSeaGlassPermissionPrompt.showall 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.showDialoguses it withscaleFrom: 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 #
SeaGlassBackButtonfailed in aCupertinoApphost. It readMaterialLocalizations.of(context)unconditionally, and that lookup asserts and then force-unwraps its result.CupertinoAppsuppliesCupertinoLocalizationsbut 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 genericLocalizations.ofwith a fallback.showSeaGlassModalSurfacelooks its barrier label up the same way.- Audited the opposite concern too: no widget in the library needs a
Materialancestor. All 41 text-bearing widgets were mounted with noMaterialanywhere above them, and again inside a bareCupertinoAppand a bareMaterialApp: zero "No Material widget found", including every overlay, dialog and popup. Nothing depends onMaterial.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. SeaGlassIconButtongainssize(the drawn side, defaulting tobarButton) andminTapTarget(defaulting toSeaSizes.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 anOpacityfade: 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 techniqueSeaGlassLargeTitleScaffoldalready 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) andmaterializeExtent(the scroll distance over which the glass reaches full strength).scrollControllercan be supplied when a caller needs to read the same scroll position; otherwise the scaffold owns and disposes one. - The scaffold is now a
StatefulWidgetto 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.
centerTitleistrueagain onSeaGlassAppBarandSeaGlassNavigationBar, so every pushed page โ everySeaGlassSmallTitleScaffoldโ gets the centred 17pt title.- The platform centres a bar's principal item:
.principalis centred by default in iOS 26, and a left-aligned title is the thing you have to ask for (.toolbarRolein 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.SeaApprenders the app immediately and bootstraps storage / device info / files in the background, so a first-frameinitStateread ofSea.device.deviceModelraced 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". AwaitSea.servicesReadybefore reading a service the app shell initialises for you; it completes even when an initialiser fails.- Facade drift closed.
SeaDeviceProxynow forwards the seven raw info objects (androidInfoโฆpackageInfo),SeaStorageProxyforwardsgetStringListOr, andSeaAnalyticsProxyforwardsanalytics/observer. TheSeafacade 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. GlassTabis 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
SeaDevicecrashed on Flutter web.Platform.isAndroidthrowsUnsupportedErroron web, andSeaAppcallsSeaDevice.init()at bootstrap. Now guarded withkIsWeb(web readswebBrowserInfo), andisAndroidโฆisDesktopreturn false rather than throwing.deviceModel/osVersion/deviceNamealso resolve from the web browser info._initAdshad no try-catch โ the only_init*without one. A missing ad key threw into the unawaited bootstrap and silently skippedservices.onReady. Ads are now best-effort like everything else._initFirebaseresolved the wrong app when a customFirebaseAppwas supplied:Firebase.app()resolves the default app and throws for a named one. Resolves by the supplied instance's name instead.SeaHttpnull bodies reported as type-cast errors.onSuccess?.call(data as T)threw aTypeErrorfor an empty response on a non-nullableT, which the generic catch swallowed into a misleading message while the success callback never ran. A null body now routes toonErrorwith "Empty response".SeaFormat.formatSizethrew aRangeErrorfordecimals < 0('0' * decimals); clamped to 0โ10.SeaLoghistory listeners could break the notification loop (and rethrow inside a log write) โ each listener is now isolated.SeaValidators.creditCarddoc said "6โ19 digits" while the check enforces 13โ19; the doc was wrong and now says so.SeaGlassRating.allowHalfremoved โ declared, never implemented, never called. A parameter that does nothing is a trap.
iOS 27 conformance
SeaWebViewโ MaterialLinearProgressIndicatorโ the glassSeaGlassProgressIndicator.linear; rawCupertinoNavigationBar(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'sNavigator.popin the action callback โ since 0.6.4 the centred action sheet dismisses itself, so the extra pop closed the hosting page.SeaRefreshWidgetโ MaterialClassicHeader/ClassicFooterโCupertinoHeader/CupertinoFooter.seaNoMoreTextnow maps onto the Cupertino footer'semptyWidget(the Cupertino footer has no text parameter).SeaLoadingโshowLoading/showProgressused an opaque black mask over the whole screen; now clear.SeaGlassDebugPageโ rawCupertinoAlertDialogร2 โSeaGlassAlert, rawCupertinoActionSheetโshowSeaGlassActionSheet(iOS 26 centred form), MaterialDividerโSeaGlassDivider.SeaAuthPageโ the four secondary links hardcodedfontSize: 14(not an iOS ramp size); nowSeaTextStyles.callout. The header icon container's radius referencesSeaRadius.card.
Example
showcase_page.dartawaitsSea.servicesReadybefore 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.dartdocuments 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.dart20/20;review_shot_test.dart44/45 (demo_displayremains 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
servicesReadyfix.
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.
SeaDismissKeyboardnever dismissed the keyboard. It guarded onfocusNode.context.widget is TextField, but aFocusNode'scontextbelongs to aFocuswidget, never to the field that created it, so the check never matched and the listener always returned early. It was also testing for MaterialTextFieldin a library built on Cupertino. Now walks up to anEditableTextancestor, which covers Material and Cupertino alike, andSeaKeyboard.isOpenmeans "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'sbuild, butSeaGlassAlertis public and can be placed inline; an inline alert's action button navigated the user away from the page. The dismiss now lives inshow(), where the route actually is โ the same shapeSeaGlassDialogalready used.show()also defaults tobarrierDismissible: false, which is whatUIAlertControllerdoes: an alert is answered, not swiped away. Behaviour change.- The notification's
onDismissfired after dispose. Both_dismiss()methods checkedmountedbeforeawait 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.monthAndYeargave a day picker. It mapped toCupertinoDatePickerMode.date, so callers who explicitly asked for month + year got a day-of-month wheel they had ruled out. Now maps toCupertinoDatePickerMode.monthYear.- Carousel autoplay died on the first swipe, then accelerated. Autoplay was
a bare
Future.delayedchain: a step that landed during a drag returned without rescheduling, killing the chain permanently, whileonHorizontalDragEndstarted a second chain โ so the pages advanced twice as fast, then three times, with every swipe. Replaced with one cancellableTimerthat always reschedules and is never restarted by the drag handler. - A single-expansion accordion left two tiles open. The group re-feeds
initiallyExpanded: index == expandedIndexon every rebuild, but a reusedStateignoresinitiallyExpandedby definition โ so tapping A then B left both open.SeaGlassExpansionTilegained anisExpandedparameter that makes it a controlled component, and the group drives that instead. Behaviour change (additive;initiallyExpandedstill works standalone). SeaGlassAvatarGroupignored its ownsize. Row height and stack pitch were hardcoded 44, which happens to bemedium, so a group oflarge(64) orxLarge(88) avatars overlapped into a blob. The sizeโside mapping is now the top-levelseaAvatarDimension(), shared with the avatar itself.SeaGlassContextMenu:menuAlignmentwas declared as a FlutterAlignmentand never forwarded, so the alignment a caller asked for had no effect; it is now the vendor'sGlassMenuAlignment?(whosenonemeans "choose from the trigger's position on screen") and is passed through.previewBuilderis gone โCupertinoContextMenuhas 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 useminimumSizerather than the deprecatedminSize, 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.
SeaGlassActionSheetwas that bottom drawer, and is now a thin wrapper overSeaGlassAlert: same width (SeaSizes.alertWidth, 270pt), same 28pt corner radius, same alert stack, plus a Cancel separator and an explicitSeaActionSheetStyle.bottomescape hatch for the screens that genuinely want the slide-up form. Visual change. - The alert family shares one number, finally.
SeaGlassAlert,SeaGlassDialog, andSeaGlassPermissionPrompteach 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 toSeaSizes.alertWidth= 270pt, which is whatUIAlertControllerlays 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".SeaGlassActionSheetuses 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.
centerTitledefaulted totrueeverywhere (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 tofalse; passcenterTitle: trueonly 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 โisClosedonly flips on theGet.delete()path, not on the directonClose/dispose()path that most of the example uses. The result was asetState() called after dispose()exception the first time the user re-entered a page that had fired a request.SeaGetPageMixinandSeaGetStatusMixinnow set a_seaDisposedflag in their dispose hooks and guard every async callback (seaRefresh,seaLoadMore,seaOnError,seaLoadSuccess) with a_seaGonecheck. Behaviour change.
Tokens
SeaSizes.alertWidth= 270 โ the alert family width, sourced fromUIAlertController.SeaSizes.ratingStar= 28 โ the side of one star in a rating control.SeaGlassRatinghad 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,SeaGlassPermissionPromptall 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: falseputs 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 nosetState after disposeexception 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
SeaSystemUiresolvesSystemUiOverlayStyle(statusBarColor: Colors.transparent, โฆ, systemStatusBarContrastEnforced: false)and is installed bySeaApp,SeaGlassScaffoldandSeaGlassPage. Only the icon brightness follows the theme. Visual change on Android.SeaGlassScaffold.statusBarStylenow 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'sGlassTabBar.searchableexisted, butGlassSearchBarConfigandSearchableBottomBarControllerwere 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 (GlassTabBarMinimizeControllerwas not exported).- All three tab-bar shapes now share one set of iOS 26 metrics
(
barHeightPill56,barVerticalPadding8,labelSize10,minimizedPillHeight50), 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:
GlassStatusBarStyleandGlassScrollEdgeStyle(parameters ofSeaGlassScaffold),GlassEffectTransition(SeaGlassNavigationShell),GlassMenuAlignment(SeaGlassMenu),GlassThemeData(SeaGlassConfig). The same gap was closed forGlassTabBarExtraButtonin 0.6.2 and forGlassSearchBarConfig/SearchableBottomBarController/GlassTabBarMinimizeControllerhere.GlassSheetMode/GlassSheetStatewere already exported forshowSeaGlassModalSheet. - 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 standaloneSearchPageroute is gone.
๐งช Tests #
test/sea_layout_test.dartgains two: everySeaGlassTabBarshape reports the iOS 26 height (not the vendor 104pt), and bothSeaSystemUistyles 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.
SeaGlassBackButtondrew 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: truerestores 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 (
tile12,card14, on the reasoning that 20+ reads as Material), which also made every surface read as a web panel beside Apple's own. Nowbadge12,tile16,card20, andsheet28. 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 toSeaRadius.sheet(28): iOS 26 rounds modal surfaces more than any previous release. SeaGlassSectionpasses 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 carriesSeaRadius.tile.- The tab bar was 104pt tall.
GlassTabBar.bottomdefaults tobarHeight64 with 20pt padding above and below โ a slab, not the compact capsule iOS 26 floats 8pt above the home indicator.SeaGlassTabBarnow buildsbarHeightPill56 with 8pt padding (72pt total), and labels at 10pt rather than 11pt. Pages need no change: they reserve clearance throughSeaInsets/SeaBottomInset, which read the height the bar publishes. - Rows are taller. iOS 26 grouped rows carry more padding than iOS 18's.
SeaGlassListTileraises 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, butGlassTabBarExtraButtonwas not exported, so a caller could not name the type โ now exported, along withGlassExtraButtonPlacementandGlassExtraButtonPosition. 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.
GlassGroupedSectionputs its children in aColumnthat keeps the defaultCrossAxisAlignment.center, so any row narrower than the card shrink-wrapped and floated to the middle of it. A full-widthRowhides the bug; a label/description block does not โ which is how a section ended up with some rows flush left and others adrift.SeaGlassSectionnow gives every child a full-width constraint once, in one place, and passesGlassListTilethrough 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 withSeaGlassLargeTitleScaffold. - 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'sRouteSettings(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. SeaGlassSectionnow renders its own header and footer.GlassGroupedSectionstyled them at 13pt/w400 inside aDefaultTextStylethat 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.SeaGlassListTilemerges rather than replaces its text style, so it no longer discards the app's font family. AddedSeaGlassListTile.chevron(context)as the single disclosure mark โ pages that hand-rolled their ownIconhad drifted to a 12pt chevron in one place and a 16pt one in another.SeaGlassAboutPagewas a page with no navigation bar. It rendered a nakedListViewwith a hardcoded 32pt inset and parked a "Back" button under the copyright line โ the only way off the screen. It is now aSeaGlassSmallTitleScaffoldwith the back control where it belongs, tokenised spacing, and no stray button.SeaGlassDebugPagedrew its content under its own app bar. The body reserves space for the bars itself (extendBody), andSafeAreaonly 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 bySeaInsets.top, which reads the bar's measured height.SeaAuthPagecan 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:
DemoScaffoldpicks its title level per route, so all 14 catalog pages re-levelled at once;DemoNavTilemoved 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);LanguagePagerebuilt from a full-bleed MaterialListView.separatedinto one decorated grouped surface with hairline separators and a checkmark;AppShellobserves 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 aRow, 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 aminimumDateofDateTime.now()evaluated after itsinitialDate, which trips Cupertino's own assertion.
๐งช Tests #
test/sea_layout_test.dartlocks 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.bottombuilds its pill asbarHeight + verticalPadding * 2= 104pt (64 + 40), butSeaSizes.bottomBarand 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โSeaGlassScaffoldpublishes its measured bar heights; descendant pages read them throughSeaInsets.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-writtenSizedBox(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.
SeaGlassSectionno longer applies its own 16pt margin.GlassGroupedSectiondefaults tohorizontal: 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 explicitmarginfor a genuinely nested group.- Status bar icons now follow the theme.
statusBarStyledefaulted toGlassStatusBarStyle.none, which installs noAnnotatedRegionat all โ the icons kept whatever the last imperativeSystemChromecall set, i.e. dark icons on a dark background in dark mode. The default is nowGlassStatusBarStyle.auto. Behaviour change forSeaGlassScaffoldandSeaGlassPage. - Pushed routes keep the iOS transition.
Navigator.push(MaterialPageRoute(...))loses the edge-swipe back gesture and uses a Material transition on iOS. NewSeaNavigator(push,pushReplacement,pushGlass,pop,canPop) picksCupertinoPageRouteon Apple platforms. - The page gutter is now a single token,
SeaSpacing.page(16), shared bySeaGlassSection,SeaGlassLargeTitleScaffold.largeTitlePadding, its subtitle and the toolbar controls โ previously each used a literal24/8. settings_page/file_demos_pageconverted toSeaPageSliver+SeaBottomInset;language_pagenow 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). Previouslylib/src/theme/owned only colors and text styles, so every widget hard-coded its own geometry:16appeared in 28 files,8in 23,12in 16. These are now named tokens, and the glass presets reference them so a radius can only be tuned in one place. SeaGlassStylepresets now derive theirborderRadiusfromSeaRadiusinstead of repeating20/32/28/16as literals. A test asserts the two stay in sync.SeaTextStylesgainedcallout(16),calloutEmphasized(16),footnote(14),footnoteEmphasized(14),micro(11),glassTitle,glassBody,glassCaptionandcolored().16and14were 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.FeedbackKindreplaces the two structurally identicalSeaToastType/SeaNotificationTypevocabularies at the theme level;SeaColors.forFeedbackTypemaps a kind to its color.- Behaviour change:
SeaGlassCard.borderRadiusdefault10 โ 20(SeaRadius.card), matchingSeaGlassStyle.card. Cards were the flagship surface and were the only geometry in the library that disagreed with its own preset. - Behaviour change:
SeaGlassCardgained asettingsparameter, 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.SeaAppwires the toast socopyWithFeedbackworks without any setup. Reachable asSea.copyToClipboard/Sea.readClipboard.SeaHapticsโselection,light,medium,heavy,success,error,vibrate, plus a globalenabledswitch. Six widgets were callingHapticFeedback.lightImpact()inline. Reachable asSea.hapticSelection()etc.SeaUrlLauncherโopen,openNewTab,email,phone,sms,maps,canOpen,openIfPresent,storeListing.url_launcherwas promoted from a transitive dependency to a direct one. This unblocksSeaAppInfoConfig.privacyPolicyUrl/userAgreementUrl, which were declared but had no way to be opened. Reachable asSea.openUrl/Sea.openMail/Sea.callPhone.SeaKeyboard.dismiss+SeaDismissKeyboardwidget โ background-tap dismissal. The most repeated boilerplate in a form screen.SeaInputFormattersโdigitsOnly,digitsUpTo,alphanumeric,uppercaseAlphanumeric,decimal,phone,cardNumber,matching,maxLength, plus the composableUpperCaseTextFormatter/DecimalTextInputFormatter/PhoneTextInputFormatter/CardNumberTextInputFormatter.SeaGlassTextField.inputFormattersexisted 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โ addedlength,minLength,maxLength,numeric,integer,range,url,phone,creditCard(Luhn),idNumber(ISO 7064 MOD 11-2),regex,strongPassword,pastDate, and the boolean predicatesisValidUrl/isValidPhone/isValidCreditCard. Existing signatures are unchanged.
๐ Fixes #
SeaThrottlenow has a trailing edge. It was leading-edge only with nodispose(), so the last call in a burst was dropped โ which stalls a "load more at the end of the list" handler. Addedtrailing: falseto opt out, plusdispose(). Behaviour change: a throttled call inside the cooldown now eventually runs; previously it was discarded.SeaFormat.timeAgorounds to the nearest unit instead of truncating, and handles future timestamps (in 5m). A timestamp exactly 48 hours out previously rendered "in 1d".SeaDateTimeExt.timeAgonow 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 honoursappviaFirebaseAnalytics.instanceForinstead of ignoring it.SeaFirebaseConfig.appis therefore live rather than dead.SeaFirebaseConfig.app/SeaSupabaseConfig.locale/SeaGlassConfig.*Gradient/SeaAppInfoConfig.appNamewere accepted and then discarded.appandappNameare 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.webInfois no longer declared-but-always-null on non-web builds.- Removed the
VoidCallbacktypedef fromsea_debounce.dart, which shadoweddart: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.httpcould notput/patch/delete/download/upload, and had no access todiooraddAuthInterceptorโ so the natural pairing ofSea.file.saveToDevice+Sea.http.uploadwas impossible. All verbs, interceptors and transfer methods are now forwarded.Sea.loglostconfigure,setLevel, and the entire history ring buffer thatSeaGlassDebugPagerenders.Sea.storagelostsetJson/getJson/setObject/getObjectโ the only way to persist a model.Sea.connectivitylost bothonConnectivityChangedandlisten, so offline handling was impossible through the facade.Sea.analyticskept 6 of 19 members; every commerce and engagement event was invisible.Sea.supabaselostclient,auth,fromandstorage.
๐งน 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 onSeaApp);SeaGlassTheme.globalQualityapplies to every fast_sea glass surface (SeaGlassContainer,SeaGlassButton, the toolbar capsule). No per-widget quality configuration;GlassQualityis now exported fromfast_sea.dart.null(default) lets the adaptive quality scope decide per device. The example setsGlassQuality.standard -
Full native transition chain โ Large Title โ scroll collapse โ floating Glass Toolbar โ Compact Title โ built on
liquid_glass_widgets' official machinery: a self-measuringGlassLargeTitlesliver drives aGlassLargeTitleController, and the toolbar reads the same controller for its animation. No opaque-bar switch, noBackdropFilter, noif (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
collapseProgressand areIgnorePointer-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
subtitleparameter โ optional App Store-style line under the large title, scrolling away with the content -
backgroundis now opt-in โ the scaffold no longer injects a defaultSeaGlassBackground, so embedding it as a tab page inside aSeaGlassScaffoldshell no longer stacks two glass backgrounds; standalone routes passbackground: SeaGlassBackground()explicitly -
Perf: the glass capsule is built once per scaffold build; scroll ticks only update the cheap
Opacitywrapper viaListenableBuilderโ the glass surface is never recreated per frame -
Android runtime fixes (found via device logs):
- Toolbar capsule now renders with
useOwnLayer: trueโ per-widgetsettingsare 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) SeaGlassContainergains aqualitypass-through and only forwardssettingswhenuseOwnLayeris set โ grouped mode ignores them anyway, and forwarding them made LiquidGlassWidgets emit a warning per widget per buildSeaGlassButtongainsuseOwnLayer/qualityand mirrors the same grouped-aware settings pattern (kills the per-button warning spam; zero visual change โ the settings were ignored)
- Toolbar capsule now renders with
-
Added class documentation covering the transition chain, the controller ownership/dispose contract, and shell-embedding
-
Example home (
showcase_page) uses the scaffold withsubtitleand toolbar actions; the hardcodedAuth & Aboutsection title is now localized (showcase_auth_aboutin en/zh)
๐ Files & Cache โ Sea.file #
- New
SeaFileservice (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-useXFileSeaFileConfigโrootFolderName,copyPickedFiles,useTemporaryForCache; auto-init viaSeaServicesConfig.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'sFastImageWidget - Auto sizing โ set
heightorwidthplus aratio(height / width) and the other dimension is derived - Source detection โ
assets/โฆ&packages/โฆโImage.asset,/โฆ&file://โฆโImage.file, otherwiseCachedNetworkImage - 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) andsea_get_refresh_widget.dart(wrong relative import) โ both failed to compile - Fix locale asset base path: default is now
packages/fast_sea/assets/localewith a bare-path fallback - Fix
tool/gen_locales.pywriting to the oldlib/assets/localelocation - Raise
environmenttosdk ^3.11.0/flutter >=3.41.0(the real floor already imposed byliquid_glass_widgets) - Bump
device_info_plusโ 13.2.0 andpackage_info_plusโ 10.2.1 to unblockshare_plus13 (win32conflict)
๐ Audit fixes (dialogs / mixins / exports)
- Fix
SeaGlassDialog.shownever dismissing โGlassDialogdoes not auto-pop, and combined withbarrierDismissible: falsean action could leave the dialog on screen forever. Actions are now wrapped so the dialog pops first; addedSeaDialogAction.resultsoshow<T>()actually returns a value, madeonPressedoptional andbarrierDismissibleconfigurable - Fix
ambiguous_exportโSeaCallbackwas declared in bothsea_refresh_widget.dartandsea_get_refresh_widget.dart; the GetX widget now re-uses the canonical typedef - Fix unhandled async errors in the pagination mixins โ
SeaPageMixin/SeaGetPageMixinseaOnErrorre-threw whileonInit()callsseaRefresh()unawaited. Both now match the status mixins (log + set error state, no rethrow) and takeObject e - Export the orphaned GetX APIs โ
SeaGetPageMixin,SeaGetStatusMixinandSeaGetRefreshWidgetwere advertised in the changelog but never exported (unreachable) - Fix a redundant
!inSeaLocaleService.loadLocale
๐ Layout / iOS 27 style
SeaGlassScaffoldnow passes through the fullGlassScaffoldlayout API โ it previously hard-codedextendBody: false(which silently disabled the iOS 26/27 soft scroll-edge fade and stopped content scrolling behind the bars) and droppedsettings,edgeStyle,header,bodyOverlays,contentAwareBrightness, bar heights, etc.extendBodynow defaults totrue(the canonical Liquid Glass look) and every knob is exposedSeaGlassTabBarnow implementsPreferredSizeWidgetโ it was a plainStatelessWidget, soGlassScaffoldcould 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
kSeaGlassBottomBarHeightfor insetting scroll content above the floating bar - Example: removed the duplicated
SeaGlassBackgroundfrom 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 +
SeaFileConfigreference
๐งฉ Example โ reusable starting template #
example/is now a copy-paste iOS 26 Liquid Glass starter covering everyfast_seacaseexample/lib/main.dartโSeaAppentry; no manual init โ storage/device/file/locale are auto-initialised andAppSettings.restore(wired toSeaServicesConfig.onReady) re-applies the saved theme + locale before the first frameexample/lib/app/app_settings.dartโ persistedThemeMode+LocaleviaSea.storage(the template's persistence layer)example/lib/app/app_shell.dartโ iOS-style glassSeaGlassTabBarshell (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_widgetsloads viaflutter: 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
Translationsimplementation forGetMaterialApp - 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 โ
@keyplaceholders:Sea.locale.tr('time_minutes_ago', params: {'count': '5'}) - Runtime switching โ
Sea.locale.changeLocale(Locale('ja', 'JP'))with reactivecurrentLocale - 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
seaprefix:seaLoadData,seaRefresh,seaLoadMore,seaOnError,seaDataAdded,seaErrorWidget,seaEmptyWidget,seaLoadingWidget
๐ GetX Mixins #
- SeaGetStatusMixin โ
mixin SeaGetStatusMixin on GetxControllerwithupdate()instead ofsetState - SeaGetPageMixin โ
mixin SeaGetPageMixin<T> on GetxControllerfor paginated data with GetBuilder - SeaGetRefreshWidget โ
SeaGetRefreshWidget<C extends GetxController>combiningGetBuilder<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 reactiveObxsupport. - SeaConfig โ Centralized config via
Sea.config, auto-initialized bySeaApp.
๐ซง New Glass Widgets #
- SeaGlassNavigationShell โ
GlassNavigationShellwrapper for glass page transitions. - SeaGlassPage โ
GlassPagewrapper with background sampling and status bar style control. - SeaLiquidGlassScope โ
LiquidGlassScopewrapper for glass color absorption. - SeaGlassProgressiveBlur โ
GlassProgressiveBlurgradient blur overlay. - SeaGlassButtonGroup โ
GlassButtonGroupsegmented icon button group. - SeaGlassContainer โ
GlassContainergeneric glass container with customizable radius. - SeaGlassPageControl โ
GlassPageControldot indicator for PageView. - SeaGlassMaterialize โ
GlassMaterializefade-in/out animation wrapper. - SeaGlassMenu โ
GlassMenupopup menu with glass effect. - SeaGlassPopover โ
GlassPopoverglass popover with flexible content. - SeaGlassPullDownButton โ
GlassPullDownButtonpull-down action menu. - SeaGlassPasswordField โ
GlassPasswordFieldpassword input with visibility toggle. - SeaGlassFormField โ
GlassFormFieldlabeled form field wrapper. - SeaGlassTextArea โ
GlassTextAreamultiline text input. - SeaGlassActionSheet โ
showSeaGlassActionSheet()with title/message/barrierDismissible. - SeaGlassModalSheet โ
showSeaGlassModalSheet()modal bottom sheet with drag handle.
๐จ Theme & Style #
- Default ThemeData โ
SeaAppprovides defaultlightTheme/darkThemewith properCupertinoThemeDataandColorScheme. - Theme switching โ Reactive theme toggle via
Obx, works instantly. - SeaGlassBackground โ Supports
lightGradient,darkGradient,glowBlobscustomization.
๐ 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_widgetscomponents 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_widgetsto ^1.3.0. - Added
cupertino_iconsfor icon support. - Updated repository URL.
0.1.0 #
- Initial release of
fast_sea. - Theme:
SeaColors,SeaColorScheme,SeaTextStyles,SeaGlassStyle,SeaGlassThemewith light/dark support. - Glass Widgets (wrapping
liquid_glass_widgets1.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
- Layout:
- HUD:
SeaHUDโ toast, loading, progress, success/error/info viaflutter_easyloading. - Refresh:
SeaRefreshWidgetโ pull-down refresh and pull-up load more viaeasy_refresh. - Pagination:
SeaPageMixin<T, F>โ mixin for paginated data loading. - Ads:
SeaAdsWidget,SeaAdsProviderโ Banner, Interstitial, Rewarded, AppOpen ad support viagoogle_mobile_ads. - State Management: GetX integration via
get.