App: add a selectable app design with a Terminal look

AppDesign builds each design's light and dark ThemeData with an
AppDesignTokens extension (corner radius, flat surfaces, frame colour,
ANSI accents, prompt glyph). Settings gains a Design picker stored per
device; the theme hosts rebuild live. Terminal is monospace (bundled
RobotoMono), near-black or paper, flat 1px frames with 3px corners, and
draws the chat transcript as prompt lines, tool dot/result lines and
bracketed follow-up lines. Default keeps its exact themes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 16:43:59 +00:00
parent 9a6363b80e
commit ca2f7eee32
45 changed files with 1961 additions and 95 deletions
+11 -1
View File
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import '../theme/app_design_tokens.dart';
/// The leading circle every list row uses, as large as a native contact
/// avatar ([CircleAvatar]'s default).
@@ -58,10 +59,19 @@ class AppListAvatar extends StatelessWidget {
fontWeight: FontWeight.w700,
height: 1,
);
// A flat design (Terminal) frames the mark in a square box instead of a
// tinted circle.
final tokens = AppDesignTokens.of(context);
final decoration = tokens.flat
? BoxDecoration(
border: Border.all(color: mark.withValues(alpha: 0.55)),
borderRadius: tokens.corners(BorderRadius.zero),
)
: BoxDecoration(color: fill, shape: BoxShape.circle);
final circle = SizedBox.square(
dimension: kAppListAvatarSize,
child: DecoratedBox(
decoration: BoxDecoration(color: fill, shape: BoxShape.circle),
decoration: decoration,
child: Center(
// The glyph is identity, not reading text: it scales down to stay
// inside the circle under large text instead of overflowing it.