🐛 Bug fixes of fixed avatar

This commit is contained in:
LittleSheep 2024-04-30 20:37:08 +08:00
parent 7fb94eeafa
commit 5d79692766
2 changed files with 3 additions and 3 deletions

View File

@ -142,7 +142,7 @@ class InteractiveParticipantWidget extends StatelessWidget {
final double? width;
final double? height;
final Color? color;
final bool? isFixed;
final bool isFixed;
final ParticipantTrack participant;
final Function() onTap;
@ -163,7 +163,7 @@ class InteractiveParticipantWidget extends StatelessWidget {
width: width,
height: height,
color: color,
child: ParticipantWidget.widgetFor(participant, isFixed: true),
child: ParticipantWidget.widgetFor(participant, isFixed: isFixed),
),
onTap: () => onTap(),
onLongPress: () {

View File

@ -42,7 +42,7 @@ class _NoContentWidgetState extends State<NoContentWidget> with SingleTickerProv
@override
Widget build(BuildContext context) {
final double radius = widget.isFixed
? 16
? 32
: math.min(
MediaQuery.of(context).size.width * 0.1,
MediaQuery.of(context).size.height * 0.1,