fix: match the background task bar to the activity strip

- draw the task bar in the activity strip's capsule (8px margins, 14px
  padding, 36px min height, stadium radius) so the two read as one stack
- drop the stop button from the bar: its padding pushed the clock off the
  right edge shared with the strip above; the row opens the sheet instead
- in the sheet, show only the clock while running, a stop button with a
  stop icon, and "已结束" once the command ends; no "运行中" label and no
  close x (the drag handle and the scrim already close it)
- say "读取输出…" while the first page loads instead of claiming the
  command has printed nothing
- rest the pet's feet on the status capsule's edge (4px top margin)
  instead of sinking 2px into it
This commit is contained in:
blumia committed 2026-11-24 23:19:47 +08:00
1 parent c4de5e84d8
commit 9564019a91
7 files changed
+142 -86

No files matched your search

+9 -3
View File
@@ -16,7 +16,12 @@ import '../pets/pet_pack.dart';
/// cap's while a turn runs). Dragging it sideways moves it along that edge.
class PetLayer extends StatefulWidget {
final String state;
const PetLayer({super.key, required this.state});
/// How far below the layer's bottom edge the feet stand: the composer's
/// top padding, or the status capsule's edge when one sits above it.
final double footOffset;
const PetLayer({super.key, required this.state, this.footOffset = 6});
@override
State<PetLayer> createState() => _PetLayerState();
@@ -62,8 +67,9 @@ class _PetLayerState extends State<PetLayer> {
// little below the anchor, and the composer keeps a few px of top
// padding above its capsule, so step past both; that overflow is
// fine, the layer does not clip.
final bottom =
-((pack.canvas.height - pack.anchor.dy) * scale + 6) + _lift;
final bottom = -((pack.canvas.height - pack.anchor.dy) * scale +
widget.footOffset) +
_lift;
return Stack(
clipBehavior: Clip.none,