Skip to content

armgit / ente

Public Imported from GitHub
0

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

add memories title with a heart icon

ashilkn6ee47cc1bef4
diff --git a/lib/ui/home/memories/memories_widget.dart b/lib/ui/home/memories/memories_widget.dart
index 7919471c6f..f187e1e705 100644
--- a/lib/ui/home/memories/memories_widget.dart
+++ b/lib/ui/home/memories/memories_widget.dart
@@ -5,6 +5,7 @@ import "package:photos/core/event_bus.dart";
import "package:photos/events/memories_setting_changed.dart";
import 'package:photos/models/memory.dart';
import 'package:photos/services/memories_service.dart';
+import "package:photos/theme/ente_theme.dart";
import "package:photos/ui/home/memories/memory_cover_widget_new.dart";
class MemoriesWidget extends StatefulWidget {
@@ -51,6 +52,32 @@ class _MemoriesWidgetState extends State<MemoriesWidget> {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 12.0),
+ child: Stack(
+ alignment: Alignment.centerRight,
+ children: [
+ const RotationTransition(
+ turns: AlwaysStoppedAnimation(20 / 360),
+ child: Icon(
+ Icons.favorite_rounded,
+ color: Color.fromRGBO(0, 179, 60, 0.3),
+ size: 32,
+ ),
+ ),
+ Padding(
+ padding: const EdgeInsets.only(right: 16),
+ child: Text(
+ "Memories",
+ style: getEnteTextTheme(context).body,
+ ),
+ ),
+ ],
+ ),
+ ),
+ const SizedBox(
+ height: 12,
+ ),
_buildMemories(snapshot.data!),
const Divider(),
],