Skip to content

armgit / ente

Public Imported from GitHub
0

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

Added widgets for showing image and text on memory that works with the dynamic resizing

ashilkn7383dbe0c18d
diff --git a/lib/ui/home/memories/memories_widget.dart b/lib/ui/home/memories/memories_widget.dart
index 12f2a6129e..4c36f6f3c1 100644
--- a/lib/ui/home/memories/memories_widget.dart
+++ b/lib/ui/home/memories/memories_widget.dart
@@ -79,6 +79,7 @@ class _MemoriesWidgetState extends State<MemoriesWidget> {
return SizedBox(
height: 150,
child: InfiniteCarousel.builder(
+ loop: false,
controller: _controller,
itemCount: memoryWidgets.length,
itemExtent: _itemExtent,
@@ -101,12 +102,19 @@ class _MemoriesWidgetState extends State<MemoriesWidget> {
},
child: Padding(
padding: const EdgeInsets.all(2.0),
- child: Container(
- decoration: BoxDecoration(
- borderRadius: BorderRadius.circular(5),
- boxShadow: kElevationToShadow[2],
- ),
- child: memoryWidgets[itemIndex],
+ child: Stack(
+ fit: StackFit.expand,
+ alignment: Alignment.bottomCenter,
+ children: [
+ Image.asset(
+ "assets/onboarding_safe.png",
+ fit: BoxFit.cover,
+ ),
+ const Positioned(
+ bottom: 8,
+ child: Text("1 year ago"),
+ ),
+ ],
),
),
);