Chat perf: path-free running border, keystroke- and delta-quiet composer, spinners that do not relayout their list
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -33,9 +33,17 @@ class _AppSpinnerState extends State<AppSpinner>
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
/// The indicator rebuilds on every animation frame. A rebuild under an
|
||||
/// enclosing [LayoutBuilder] (a list row's) marks that builder for layout,
|
||||
/// and a row in a list then relays the whole list out on every frame. Under
|
||||
/// its own builder the rebuild lays out only this spinner (and, under loose
|
||||
/// constraints, its parents up to the nearest relayout boundary); in a fixed
|
||||
/// square, as in chat rows, it stops at the spinner.
|
||||
@override
|
||||
Widget build(BuildContext context) => CircularProgressIndicator(
|
||||
controller: _controller,
|
||||
strokeWidth: widget.strokeWidth,
|
||||
Widget build(BuildContext context) => LayoutBuilder(
|
||||
builder: (context, _) => CircularProgressIndicator(
|
||||
controller: _controller,
|
||||
strokeWidth: widget.strokeWidth,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user