storage_error_widget.dart 878 B

12345678910111213141516171819202122232425262728293031
  1. import 'package:flutter/material.dart';
  2. import 'package:photos/theme/colors.dart';
  3. import 'package:photos/theme/ente_theme.dart';
  4. class StorageErrorWidget extends StatelessWidget {
  5. const StorageErrorWidget({super.key});
  6. @override
  7. Widget build(BuildContext context) {
  8. return Padding(
  9. padding: const EdgeInsets.all(12),
  10. child: Column(
  11. crossAxisAlignment: CrossAxisAlignment.start,
  12. mainAxisAlignment: MainAxisAlignment.spaceBetween,
  13. children: [
  14. const Icon(
  15. Icons.error_outline_outlined,
  16. color: strokeBaseDark,
  17. ),
  18. const SizedBox(height: 8),
  19. Text(
  20. "Your storage details could not be fetched",
  21. style: getEnteTextTheme(context).small.copyWith(
  22. color: textMutedDark,
  23. ),
  24. ),
  25. ],
  26. ),
  27. );
  28. }
  29. }