Parcourir la source

Add NoThumbnail Widget

Neeraj Gupta il y a 2 ans
Parent
commit
58c28e374a
1 fichiers modifiés avec 28 ajouts et 0 suppressions
  1. 28 0
      lib/ui/viewer/file/no_thumbnail_widget.dart

+ 28 - 0
lib/ui/viewer/file/no_thumbnail_widget.dart

@@ -0,0 +1,28 @@
+import 'package:flutter/material.dart';
+import 'package:photos/theme/ente_theme.dart';
+
+class NoThumbnailWidget extends StatelessWidget {
+  const NoThumbnailWidget({Key? key}) : super(key: key);
+
+  @override
+  Widget build(BuildContext context) {
+    final enteColorScheme = getEnteColorScheme(context);
+    return Container(
+      decoration: BoxDecoration(
+        borderRadius: BorderRadius.circular(1),
+        border: Border.all(
+          color: enteColorScheme.strokeFaint,
+          width: 1,
+        ),
+        color: enteColorScheme.fillFaint,
+      ),
+      child: Center(
+        child: Icon(
+          Icons.photo_outlined,
+          color: enteColorScheme.strokeMuted,
+          size: 24,
+        ),
+      ),
+    );
+  }
+}