fix video loading spinner not covering full player area

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Tommy Chow 2026-03-08 22:32:41 -07:00
parent 9529438a3f
commit 8b8b190316

View file

@ -371,20 +371,22 @@ class _VideoChatState extends State<VideoChat>
return Stack(
children: [
player,
AnimatedOpacity(
opacity: _videoStore.loading ? 1.0 : 0.0,
duration: const Duration(milliseconds: 300),
curve: Curves.easeOut,
child: const IgnorePointer(
child: ColoredBox(
color: Colors.black,
child: Center(
child: SizedBox(
width: 24,
height: 24,
child: CircularProgressIndicator(
color: Colors.white38,
strokeWidth: 2,
Positioned.fill(
child: AnimatedOpacity(
opacity: _videoStore.loading ? 1.0 : 0.0,
duration: const Duration(milliseconds: 300),
curve: Curves.easeOut,
child: const IgnorePointer(
child: ColoredBox(
color: Colors.black,
child: Center(
child: SizedBox(
width: 24,
height: 24,
child: CircularProgressIndicator(
color: Colors.white38,
strokeWidth: 2,
),
),
),
),