π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Update UI of title of memories and make it more visible by increasing bottom gradient when title is shown
ashilkna9b454a631c2
diff --git a/mobile/lib/ui/home/memories/full_screen_memory.dart b/mobile/lib/ui/home/memories/full_screen_memory.dartindex 0f439b3a2b..4cca88027c 100644--- a/mobile/lib/ui/home/memories/full_screen_memory.dart+++ b/mobile/lib/ui/home/memories/full_screen_memory.dart@@ -13,7 +13,6 @@ import "package:photos/models/memories/memory.dart";import "package:photos/service_locator.dart";import "package:photos/services/smart_memories_service.dart";import "package:photos/theme/colors.dart";-import "package:photos/theme/ente_theme.dart";import "package:photos/theme/text_style.dart";import "package:photos/ui/actions/file/file_actions.dart";import "package:photos/ui/home/memories/custom_listener.dart";@@ -431,7 +430,7 @@ class _FullScreenMemoryState extends State<FullScreenMemory> {);},),- const BottomGradient(),+ BottomGradient(showTitle: _showTitle),Column(mainAxisAlignment: MainAxisAlignment.end,mainAxisSize: MainAxisSize.min,@@ -455,13 +454,11 @@ class _FullScreenMemoryState extends State<FullScreenMemory> {tag: widget.title,child: Text(widget.title,- style: getEnteTextTheme(context)- .large- .copyWith(- color: Colors.white,- fontSize: 40,- fontWeight: FontWeight.w600,- ),+ style: const TextStyle(+ color: Colors.white,+ fontSize: 30,+ fontFamily: "Montserrat",+ ),textAlign: TextAlign.left,),),@@ -590,27 +587,34 @@ class MemoryCounter extends StatelessWidget {}class BottomGradient extends StatelessWidget {- const BottomGradient({super.key});+ final ValueNotifier<bool> showTitle;+ const BottomGradient({super.key, required this.showTitle});@overrideWidget build(BuildContext context) {return IgnorePointer(- child: Container(- height: 120,- width: double.infinity,- decoration: const BoxDecoration(- gradient: LinearGradient(- begin: Alignment.bottomCenter,- end: Alignment.topCenter,- colors: [- Color.fromARGB(75, 0, 0, 0),- Color.fromARGB(37, 0, 0, 0),- Colors.transparent,- Colors.transparent,- ],- stops: [0, 0.45, 0.8, 1],- ),- ),+ child: ValueListenableBuilder(+ valueListenable: showTitle,+ builder: (context, value, _) {+ return AnimatedContainer(+ duration: const Duration(milliseconds: 875),+ curve: Curves.easeOutQuart,+ height: value ? 240 : 120,+ width: double.infinity,+ decoration: const BoxDecoration(+ gradient: LinearGradient(+ begin: Alignment.bottomCenter,+ end: Alignment.topCenter,+ colors: [+ Color.fromARGB(97, 0, 0, 0),+ Color.fromARGB(42, 0, 0, 0),+ Colors.transparent,+ ],+ stops: [0, 0.5, 1.0],+ ),+ ),+ );+ },),);}