no_thumbnail_widget.dart 844 B

12345678910111213141516171819202122232425262728293031
  1. import 'package:flutter/material.dart';
  2. import 'package:photos/theme/ente_theme.dart';
  3. class NoThumbnailWidget extends StatelessWidget {
  4. final bool addBorder;
  5. const NoThumbnailWidget({this.addBorder = true, Key? key}) : super(key: key);
  6. @override
  7. Widget build(BuildContext context) {
  8. final enteColorScheme = getEnteColorScheme(context);
  9. return Container(
  10. decoration: BoxDecoration(
  11. borderRadius: BorderRadius.circular(1),
  12. border: addBorder
  13. ? Border.all(
  14. color: enteColorScheme.strokeFaint,
  15. width: 1,
  16. )
  17. : null,
  18. color: enteColorScheme.fillFaint,
  19. ),
  20. child: Center(
  21. child: Icon(
  22. Icons.photo_outlined,
  23. color: enteColorScheme.strokeMuted,
  24. size: 24,
  25. ),
  26. ),
  27. );
  28. }
  29. }