The weight helpers went through _StyledText, which merges a style naming one property and lets everything else in scope stand. That works for a colour and it doesnt work for a weight: google_fonts encodes the weight in the family NAME, so merging w800 over an already resolved family changes no font file and skia synthesises instead. Skia has one fake bold, so w600, w700 and w800 all came out the same stroke and extraBold was indistinguishable from bold. They re-resolve the family now, keeping whichever face is in scope, so .mono().bold() and .bold().mono() both land on the real mono bold. PageHeading is lifted out of the hub, where it was drawn by hand above every section. A&A's licence page wanted the same block and a lookalike drifts from the original inside a day. pageGutter and propertiesSectionGap are new density tokens. Both were local magic numbers - `fontSize * 3` copied into every app that copied the hub, and a flat gapLg that a dense editor pane full of sections wears badly. garage_auth takes an optional handoff code on signIn/beginSignIn and sends it as _handoff, so a desktop build can hand its user to the web one without a second sign in. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FkzfwZf59HNP6R8jXcC1NR
54 lines
1.8 KiB
Dart
54 lines
1.8 KiB
Dart
// Public Garage UI surface.
|
|
//
|
|
// Two influences, and theyre not the same kind of influence. The API surface
|
|
// follows shadcn_flutter - the variant names, the ColourScheme slots, the
|
|
// dot-constructor shape - because that vocabulary is good and the app was
|
|
// built against it. The way things actually render follows Blender: flat
|
|
// chrome, bordered panels, dense controls, no elevation.
|
|
//
|
|
// So this is NOT a pixel for pixel restyle of shadcn. It reads as a Garage
|
|
// app, not a shadcn one - the geometry, the density and the whole chrome
|
|
// layer are ours. If youre porting a shadcn snippet, expect the call to
|
|
// compile and the result to look different, on purpose.
|
|
//
|
|
// shadcn_flutter itself is long gone as a dependency. Import this, or the
|
|
// individual files.
|
|
|
|
export "app.dart";
|
|
export "button.dart";
|
|
export "select.dart";
|
|
export "text_field.dart";
|
|
export "input_mask.dart";
|
|
export "menu.dart";
|
|
export "surface.dart";
|
|
export "selection_controls.dart";
|
|
|
|
// overlay's own Popover/PopoverController subsystem was dropped (unused - the
|
|
// app's only PopoverController is menu.dart's, via menu_bar).
|
|
export "overlay.dart";
|
|
export "pane_overlay.dart";
|
|
export "toast.dart";
|
|
|
|
export "navigation.dart";
|
|
export "extensions.dart";
|
|
export "misc.dart";
|
|
export "color_input.dart";
|
|
export "date_input.dart";
|
|
export "panel.dart";
|
|
export "page_heading.dart";
|
|
export "editor_chrome.dart";
|
|
export "context_menu.dart";
|
|
export "properties.dart";
|
|
export "semantics_scope.dart";
|
|
export "scroll_edge_fade.dart";
|
|
export "scrollbar.dart";
|
|
export "settings_list.dart";
|
|
export "field_error.dart";
|
|
export "tab_view.dart";
|
|
export "sheet.dart";
|
|
export "app_menu.dart";
|
|
export "app_menu_notifier.dart";
|
|
export "theme.dart";
|
|
export "app_frame_capture.dart";
|
|
export "package:flutter_lucide/flutter_lucide.dart";
|