Pārlūkot izejas kodu

added caption on fading bottom bar

ashilkn 2 gadi atpakaļ
vecāks
revīzija
ec1ad68ad6
1 mainītis faili ar 24 papildinājumiem un 3 dzēšanām
  1. 24 3
      lib/ui/viewer/file/fading_bottom_bar.dart

+ 24 - 3
lib/ui/viewer/file/fading_bottom_bar.dart

@@ -179,9 +179,30 @@ class FadingBottomBarState extends State<FadingBottomBar> {
             ),
             child: Padding(
               padding: EdgeInsets.only(bottom: safeAreaBottomPadding),
-              child: Row(
-                mainAxisAlignment: MainAxisAlignment.spaceAround,
-                children: children,
+              child: Column(
+                mainAxisSize: MainAxisSize.min,
+                children: [
+                  widget.file.caption.isNotEmpty
+                      ? Padding(
+                          padding: const EdgeInsets.fromLTRB(
+                            16,
+                            28,
+                            16,
+                            12,
+                          ),
+                          child: Text(
+                            widget.file.caption,
+                            style: getEnteTextTheme(context)
+                                .small
+                                .copyWith(color: textBaseDark),
+                          ),
+                        )
+                      : const SizedBox.shrink(),
+                  Row(
+                    mainAxisAlignment: MainAxisAlignment.spaceAround,
+                    children: children,
+                  ),
+                ],
               ),
             ),
           ),