Skip to content

armgit / ente

Public Imported from GitHub
0

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

create new notification note widget

ashilkn84bc55af613a
diff --git a/lib/ui/components/notification_widget.dart b/lib/ui/components/notification_widget.dart
index caccc6b839..69207ee3dd 100644
--- a/lib/ui/components/notification_widget.dart
+++ b/lib/ui/components/notification_widget.dart
@@ -131,3 +131,50 @@ class NotificationWidget extends StatelessWidget {
);
}
}
+
+class NotificationNoteWidget extends StatelessWidget {
+ final String note;
+ const NotificationNoteWidget(this.note, {super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ final colorScheme = getEnteColorScheme(context);
+ final textTheme = getEnteTextTheme(context);
+ return Container(
+ padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
+ decoration: BoxDecoration(
+ border: Border.all(color: colorScheme.strokeMuted),
+ color: colorScheme.backgroundBase,
+ borderRadius: const BorderRadius.all(Radius.circular(8)),
+ ),
+ child: Row(
+ children: [
+ Icon(
+ Icons.info,
+ color: colorScheme.strokeMuted,
+ size: 36,
+ ),
+ const SizedBox(
+ width: 12,
+ ),
+ Flexible(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ "Note",
+ style: textTheme.miniFaint,
+ ),
+ const SizedBox(height: 2),
+ Text(
+ note,
+ style: textTheme.smallMuted,
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ );
+ }
+}