empty_state_item_widget.dart 955 B

12345678910111213141516171819202122232425262728293031323334
  1. import "package:flutter/material.dart";
  2. import "package:photos/theme/ente_theme.dart";
  3. ///https://www.figma.com/file/SYtMyLBs5SAOkTbfMMzhqt/ente-Visual-Design?node-id=11379%3A67490&t=VI5KulbW3HMM5MVz-4
  4. class EmptyStateItemWidget extends StatelessWidget {
  5. final String textContent;
  6. const EmptyStateItemWidget(this.textContent, {super.key});
  7. @override
  8. Widget build(BuildContext context) {
  9. final colorScheme = getEnteColorScheme(context);
  10. final textTheme = getEnteTextTheme(context);
  11. return Row(
  12. crossAxisAlignment: CrossAxisAlignment.start,
  13. children: [
  14. Icon(
  15. Icons.check_outlined,
  16. size: 17,
  17. color: colorScheme.strokeFaint,
  18. ),
  19. const SizedBox(width: 6),
  20. Flexible(
  21. child: Text(
  22. textContent,
  23. style: textTheme.small.copyWith(
  24. color: colorScheme.textFaint,
  25. ),
  26. ),
  27. ),
  28. ],
  29. );
  30. }
  31. }