🐛 Bug fixes of fixed avatar
This commit is contained in:
parent
7fb94eeafa
commit
5d79692766
@ -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: () {
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user