소스 검색

PhotoView:Limit maxlines for photo description

Neeraj Gupta 2 년 전
부모
커밋
eed7fa9349
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      lib/ui/viewer/file/fading_bottom_bar.dart

+ 2 - 0
lib/ui/viewer/file/fading_bottom_bar.dart

@@ -204,6 +204,8 @@ class FadingBottomBarState extends State<FadingBottomBar> {
                           ),
                           ),
                           child: Text(
                           child: Text(
                             widget.file.caption,
                             widget.file.caption,
+                            overflow: TextOverflow.ellipsis,
+                            maxLines: 4,
                             style: getEnteTextTheme(context)
                             style: getEnteTextTheme(context)
                                 .small
                                 .small
                                 .copyWith(color: textBaseDark),
                                 .copyWith(color: textBaseDark),