Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: re-add captioned text

Prateek Sunal6dcf53650d83
diff --git a/mobile/apps/photos/lib/ui/components/captioned_text_widget.dart b/mobile/apps/photos/lib/ui/components/captioned_text_widget.dart
index 6fb49a49ee..73f1ac75c1 100644
--- a/mobile/apps/photos/lib/ui/components/captioned_text_widget.dart
+++ b/mobile/apps/photos/lib/ui/components/captioned_text_widget.dart
@@ -21,9 +21,8 @@ class CaptionedTextWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
- final enteTheme = Theme.of(context).colorScheme.enteTheme;
- final enteColorScheme = enteTheme.colorScheme;
- final enteTextTheme = enteTheme.textTheme;
+ final enteColorScheme = Theme.of(context).colorScheme.enteTheme.colorScheme;
+ final enteTextTheme = Theme.of(context).colorScheme.enteTheme.textTheme;
final capitalized = title.capitalizeFirst();
@@ -31,8 +30,7 @@ class CaptionedTextWidget extends StatelessWidget {
Flexible(
child: Text(
capitalized,
- style:
- textStyle ??
+ style: textStyle ??
(makeTextBold
? enteTextTheme.bodyBold.copyWith(color: textColor)
: enteTextTheme.body.copyWith(color: textColor)),
@@ -61,9 +59,11 @@ class CaptionedTextWidget extends StatelessWidget {
}
return Flexible(
child: Padding(
- padding: const EdgeInsets.symmetric(vertical: 14),
- child: Row(children: children),
+ padding: const EdgeInsets.symmetric(vertical: 14, horizontal: 2),
+ child: Row(
+ children: children,
+ ),
),
);
}
-}
+}
\ No newline at end of file