| Filename | Latest commit message | Latest commit date |
|---|---|---|
The developer's request of 10 Nov 2026, decided in ADR 0042: on mobile data every app holds its sync back, rows and files alike, and asks. halkyon_app becomes an Android plugin, its first native code, registered in every app by Flutter: HalkyonAppPlugin.java says which network the device is on and whether it is metered as Android has it (no NET_CAPABILITY_NOT_METERED: cellular, a phone's hotspot, Wi-Fi marked metered). Java, so it applies no Kotlin Gradle Plugin. MobileDataGate, one per device, holds the setting (Ask first, Sync without files, Sync everything; kept in <app support>/mobile_data.json), the network, and the person's answer, which holds until the device moves to another network or off a metered one. SyncService asks it before each sync: held back, nothing goes, the status counts what waits and asks; an answer or Wi-Fi syncs at once, and syncing now while held back is Sync now. Each app's frame shows the banner above every tab, in halkyon_ui's new NavigationFrame.banner slot (On mobile data · 3 changes waiting, with Not now, Without files and Sync now); the Sync card in Settings chooses the setting on a phone and says when files wait for Wi-Fi. Learn's files neither go up nor come down while held back. Whats-New: On mobile data the app no longer syncs by itself: a banner asks first, and Settings › Sync chooses whether to ask, sync without files, or sync everything. Whats-New-De: Mit mobilen Daten synchronisiert die App nicht mehr von selbst: Ein Hinweis fragt zuerst, und unter Einstellungen › Synchronisierung wählst du, ob sie fragt, ohne Dateien oder alles synchronisiert. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me> |
||
| .. | ||
| assets/fonts | ||
| example | ||
| lib | ||
| test | ||
| .gitignore | ||
| .metadata | ||
| analysis_options.yaml | ||
| CHANGELOG.md | ||
| l10n.yaml | ||
| LICENSE | ||
| pubspec.yaml | ||
| README.md | ||
halkyon_ui
Halkyon's look, shared by its apps (Learn, Todo, Train): one theme around the kingfisher's cobalt and copper, the bundled Noto Sans, Material 3's window sizes, and the widgets every app's screens are built of, with their texts in British English, American English and German.
Written as the apps are: Dart 3.13's primary constructors, Material from
package:material_ui (never package:flutter/material.dart), Lucide icons,
LeanCode's lints.
What it holds
- Theme (
lib/src/theme/):appTheme(brightness, extensions: …), Material 3 with hand-written light and dark schemes (primary cobalt, tertiary copper, cobalt-tinted neutrals), Material 3 Expressive's 64 dp navigation bar, flat app bars, floating snack bars;Brand;ThemeExtras, the status colours Material has no role for (Theme.of(context).extras);PaletteColor, the 20 colours a person can give content, each with a text colour held to WCAG AA by a test;FittedSnackBars. - Fonts: Noto Sans for Latin, Greek and Cyrillic, every weight in one
variable file, as
appFontFamily(packages/halkyon_ui/Noto Sans). Chinese, Japanese and Korean fall back toNoto Sans JP,SC,TCandKR, which an app bundles itself if it needs them (appFontFallbackForputs a language's own first). - Layout (
lib/src/layout/):WindowSize(context.windowSize) andreadableContentMaxWidth. - Widgets (
lib/src/widget/):showAdaptiveSheetwithSheetScaffold;TopGradient,ScreenTint,ScreenColor,TintFrame,FramedScreenandTabVisibility;FlushNavigationBar, andNavigationFrame, every app's frame around its tabs (the rail with the app's icon, opening from expanded windows on into a sidebar with labels and what the app lists there (sidebarOpen,onSidebarChanged,sidebarSections), the bar flush with the foot with a fade above it, its rounded top corners and the wave a tap sends over it in the colour of the screen in view, the tab chosen in that colour made legible (readableTone), without Material's ripple or the indicator growing, on the bar's neutral surface (decided 8 Nov 2026, ADR 0030's amendment of D60), a tick on every choice, a status such as a recording under way above the bar), whichever router drives it;AppLoadingIndicator,ButtonLoadingIndicator,AppRefreshIndicator;SectionCard,SliverCentered,EmptyListMessage,CountBadge,TitleWithKicker,CollapsingRow,ScrollHidingFab,ShimmerandSkeletonBox,liftWhileDragged,ReorderToggle,ReorderGrip;ChevronField,requiredDecoration,FieldInfoButton,CountStepper,PaletteColorPicker,TextLimitswithnearLimitCounter;confirmDestructiveAction,showUndoSnackBar,showMoreInfoSheet;FoundById;KeyboardBackOnResume;BrandWordmarkandLaunchScreen, which take the app's word and icon.
What belongs to one app stays in it: its own colours (an extension passed to
appTheme), routes, repositories, editors and texts.
Using it in an app
Depend on it by path, within the repository's workspace (an app's packages sit in
apps/<app>/), so a change to the package and to the apps using it is one commit:
dependencies:
halkyon_ui:
path: ../../../packages/halkyon_ui
Then set the app up as example/lib/main.dart does:
MaterialApp(
theme: appTheme(Brightness.light, extensions: [MyColors.light]),
darkTheme: appTheme(Brightness.dark, extensions: [MyColors.dark]),
localizationsDelegates: const [
AppLocalizations.delegate,
HalkyonUiLocalizations.delegate,
// material_ui's: flutter_localizations' serve only the SDK's Material.
...GlobalMaterialLocalizations.delegates,
],
supportedLocales: AppLocalizations.supportedLocales,
builder: (context, child) => FittedSnackBars(child: child!),
…
);
and call registerFontLicenses() at start. An app bundling the CJK fonts
declares them in its own pubspec.yaml under exactly the names
appFontFallback lists (no packages/ prefix) and registers their licence
itself.
Texts
lib/l10n/halkyon_ui_en.arb is the template (British English, also the
fallback); halkyon_ui_de.arb German, informal "du"; halkyon_ui_en_US.arb
only what American English spells differently; halkyon_ui_en_GB.arb empty. A
new text goes into the template and German together (test/l10n/ fails
otherwise). flutter pub get writes lib/l10n/halkyon_ui_localizations*.dart,
which are committed and never edited or
formatted by hand.
Checks
From the workspace root: dart analyze --fatal-infos; then flutter test in
packages/halkyon_ui and in packages/halkyon_ui/example, whose tests check
what only an app sees (the font under the name an app finds it by, its
licence).