fix video loading spinner not covering full player area
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
9529438a3f
commit
8b8b190316
1 changed files with 16 additions and 14 deletions
|
|
@ -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,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue