Give running-turn spinners their own animation controller
Without one, CircularProgressIndicator looks its controller up on every frame, walking the widget tree for the ambient Theme (89 ms over a streamed reply at 4K). AppSpinner is the stock indicator with its own controller and the stock period. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
|
||||
import '../conversation/chat_card_styles.dart';
|
||||
import 'chat_shell_command.dart';
|
||||
import 'chat_shell_run.dart';
|
||||
import '../../../ui/status/app_spinner.dart';
|
||||
|
||||
/// A command's state at the card's top end: the host's activity indicator
|
||||
/// while it runs, then a status chip (exit code, stopped, interrupted) with
|
||||
@@ -21,7 +22,7 @@ class ChatShellStatus extends StatelessWidget {
|
||||
// As tall as the line of text beside it, at any text scale.
|
||||
child: SizedBox.square(
|
||||
dimension: MediaQuery.textScalerOf(context).scale(20),
|
||||
child: const CircularProgressIndicator(strokeWidth: 2),
|
||||
child: const AppSpinner(strokeWidth: 2),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user