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

View File

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