Skip to content

armgit / ente

Public Imported from GitHub
0

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

add bottom gradient

ashilknf05f7a86a716
diff --git a/lib/ui/home/memories/full_screen_memory_new.dart b/lib/ui/home/memories/full_screen_memory_new.dart
index b470209f4c..7ac57ab438 100644
--- a/lib/ui/home/memories/full_screen_memory_new.dart
+++ b/lib/ui/home/memories/full_screen_memory_new.dart
@@ -152,6 +152,7 @@ class _FullScreenMemoryNewState extends State<FullScreenMemoryNew> {
color: Colors.transparent,
),
),
+ const BottomGradient(),
BottomIcons(index),
Padding(
padding: const EdgeInsets.only(bottom: 120, right: 240),
@@ -174,7 +175,7 @@ class _FullScreenMemoryNewState extends State<FullScreenMemoryNew> {
SafeArea(
top: false,
child: Padding(
- padding: const EdgeInsets.only(bottom: 84),
+ padding: const EdgeInsets.only(bottom: 72),
child: ValueListenableBuilder(
builder: (context, value, _) {
return AnimatedSwitcher(
@@ -296,3 +297,28 @@ class MemoryCounter extends StatelessWidget {
);
}
}
+
+class BottomGradient extends StatelessWidget {
+ const BottomGradient({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ return IgnorePointer(
+ child: Container(
+ height: 124,
+ width: double.infinity,
+ decoration: BoxDecoration(
+ gradient: LinearGradient(
+ begin: Alignment.bottomCenter,
+ end: Alignment.topCenter,
+ colors: [
+ Colors.black.withOpacity(0.5), //same for both themes
+ Colors.transparent,
+ ],
+ stops: const [0, 0.8],
+ ),
+ ),
+ ),
+ );
+ }
+}