Redesign on the Stitch reference, in Plus Jakarta Sans
Four passes, and the shape they landed on. The type face is Plus Jakarta Sans (variable, wght 200-800), which brings a fix with it: it carries the rupee glyph and Switzer does not, so prices stop being set in Geist Mono to work around a missing character. Mono stays where it is earned - references and phone numbers, read digit by digit. Surfaces lift rather than outline. Cards carry two very soft shadow layers instead of a hairline, because eight outlined boxes down a screen read as a wireframe. The tab bar floats as a pill again for the same reason it was right to: it is now the same kind of object as everything above it. Screens: * Home is the greeting, the address, the sphere and one card. The card lost its progress bar - a filling line says "wait", and a parcel two days into a journey is not something anyone is waiting through - and gained the size that buys. * Orders cards are four bands: identity, destination, route, and whatever is happening right now. Plus a search field, because the list is the archive. * Tracking leads with the state at display size, then TRIP MILESTONES with a step counter, then the courier. * Review is a route thread over two particular cards. * Account opens on the person: avatar, name, and two counted figures. Three real bugs the redesign surfaced: * Quick dispatch handed `loadCities()` straight to a FutureBuilder, so the catalogue was refetched on every rebuild and Home never settled. * Order cards showed the whole visit's weight on one destination's row - somebody else's parcel. Per group now, and only once actually weighed. * The pickup window was printed beside "In transit", where it reads as a delivery time nobody promised. Nothing invented. The reference shows EXPRESS PRIORITY, CARBON OFFSET, CONCIERGE ELITE and hub-to-hub routing; this backend sends none of them, so they are absent rather than mocked up. flutter analyze: clean. flutter test: 88 passing. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EqVJPB9B4QuieZnBAAKgYQ
This commit is contained in:
@@ -8,8 +8,12 @@ enum DmPillTone {
|
||||
/// for a Miler, out for delivery. Crimson field, white label, solid dot.
|
||||
live,
|
||||
|
||||
/// Moving, but between beats — assigned, in transit. The crimson is held in
|
||||
/// an outline so a list of six orders is not six red blocks.
|
||||
/// Moving, but between beats — assigned, in transit.
|
||||
///
|
||||
/// The crimson used to be held in an outline *and* in the label, so a list
|
||||
/// of six orders was six red words. It is held in the dot now: the colour
|
||||
/// still says "this one is running", and the word is read at ink weight
|
||||
/// like every other word on the card.
|
||||
neutral,
|
||||
|
||||
/// Finished. Grey, with a filled dot: the journey happened.
|
||||
@@ -32,8 +36,8 @@ class DmPill extends StatelessWidget {
|
||||
DmPillTone.live => (DmColors.brand, Colors.white, null),
|
||||
DmPillTone.neutral => (
|
||||
DmColors.surface,
|
||||
DmColors.brand,
|
||||
Border.all(color: DmColors.brandLine),
|
||||
DmColors.ink,
|
||||
Border.all(color: DmColors.border),
|
||||
),
|
||||
DmPillTone.done => (DmColors.surfaceAlt, DmColors.ink3, null),
|
||||
DmPillTone.off => (DmColors.surfaceAlt, DmColors.ink3, null),
|
||||
@@ -43,6 +47,10 @@ class DmPill extends StatelessWidget {
|
||||
// for anything that happened or is happening, hollow for what never did.
|
||||
final hollow = tone == DmPillTone.off;
|
||||
|
||||
// On the neutral pill the dot is the only crimson left, so it does not
|
||||
// take its colour from the label the way the other tones do.
|
||||
final dot = tone == DmPillTone.neutral ? DmColors.brand : fg;
|
||||
|
||||
return Container(
|
||||
padding: const EdgeInsets.fromLTRB(11, 5, 11, 5),
|
||||
decoration: BoxDecoration(
|
||||
@@ -58,9 +66,9 @@ class DmPill extends StatelessWidget {
|
||||
height: 6,
|
||||
margin: const EdgeInsets.only(right: 7),
|
||||
decoration: BoxDecoration(
|
||||
color: hollow ? Colors.transparent : fg,
|
||||
color: hollow ? Colors.transparent : dot,
|
||||
shape: BoxShape.circle,
|
||||
border: hollow ? Border.all(color: fg, width: 1.5) : null,
|
||||
border: hollow ? Border.all(color: dot, width: 1.5) : null,
|
||||
),
|
||||
),
|
||||
Flexible(
|
||||
@@ -163,34 +171,73 @@ class DmAvatar extends StatelessWidget {
|
||||
super.key,
|
||||
required this.initials,
|
||||
this.size = 42,
|
||||
this.onBrand = false,
|
||||
this.quiet = false,
|
||||
this.badge = false,
|
||||
});
|
||||
|
||||
final String initials;
|
||||
final double size;
|
||||
final bool onBrand;
|
||||
|
||||
/// A wash with the initials in crimson, instead of a crimson disc.
|
||||
///
|
||||
/// The solid disc is right where the avatar stands in for a person the
|
||||
/// customer is looking at — the Miler on tracking. It is wrong where the
|
||||
/// avatar is chrome: on Home it put a second saturated circle on a screen
|
||||
/// whose whole design rests on there being exactly one, and the one that
|
||||
/// matters is the sphere you press.
|
||||
final bool quiet;
|
||||
|
||||
/// A brand dot on the lower-right, cut out of the surface behind it. Home
|
||||
/// wears it when a booking is live, which is the one thing the avatar's
|
||||
/// destination — Account — would not tell you.
|
||||
final bool badge;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
final disc = Container(
|
||||
width: size,
|
||||
height: size,
|
||||
alignment: Alignment.center,
|
||||
decoration: BoxDecoration(
|
||||
color: onBrand ? DmColors.onBrandRaise : DmColors.brand,
|
||||
color: quiet ? DmColors.brandSoft : DmColors.brand,
|
||||
shape: BoxShape.circle,
|
||||
border: quiet ? Border.all(color: DmColors.brandLine) : null,
|
||||
),
|
||||
child: Text(
|
||||
initials,
|
||||
style: DmText.label.copyWith(
|
||||
fontSize: size < 40 ? 12 : 13,
|
||||
// Scales with the disc. It was capped at 13pt, which is right on a
|
||||
// 42pt avatar in a row and looks like a typo on the 86pt one at the
|
||||
// top of Account.
|
||||
fontSize: size < 40 ? 12 : (size <= 48 ? 13 : size * 0.30),
|
||||
fontWeight: FontWeight.w800,
|
||||
fontVariations: const [FontVariation('wght', 800)],
|
||||
letterSpacing: 0.13,
|
||||
color: Colors.white,
|
||||
color: quiet ? DmColors.brand : Colors.white,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
if (!badge) return disc;
|
||||
return Stack(
|
||||
clipBehavior: Clip.none,
|
||||
children: [
|
||||
disc,
|
||||
Positioned(
|
||||
right: 0,
|
||||
bottom: 1,
|
||||
child: Container(
|
||||
width: size * 0.28,
|
||||
height: size * 0.28,
|
||||
decoration: BoxDecoration(
|
||||
color: DmColors.brand,
|
||||
shape: BoxShape.circle,
|
||||
border: Border.all(color: DmColors.canvas, width: 2),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user