[mob][photos] Fix null check operator used on null value exception

This commit is contained in:
ashilkn 2025-01-07 13:28:47 +05:30
parent 161c2c1df6
commit 99405ebc2e

View File

@ -353,24 +353,27 @@ class __VideoWidgetState extends State<_VideoWidget> {
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Padding(
padding: const EdgeInsets.fromLTRB(
16,
12,
16,
8,
),
child: Text(
widget.file.caption!,
overflow: TextOverflow.ellipsis,
maxLines: 1,
style:
getEnteTextTheme(context).mini.copyWith(
color: textBaseDark,
),
textAlign: TextAlign.center,
),
),
widget.file.caption != null
? Padding(
padding: const EdgeInsets.fromLTRB(
16,
12,
16,
8,
),
child: Text(
widget.file.caption!,
overflow: TextOverflow.ellipsis,
maxLines: 1,
style: getEnteTextTheme(context)
.mini
.copyWith(
color: textBaseDark,
),
textAlign: TextAlign.center,
),
)
: const SizedBox.shrink(),
_SeekBarAndDuration(
controller: widget.controller,
isSeekingNotifier: _isSeekingNotifier,