dzocesrce

Untitled

Apr 8th, 2026
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. if (onRetry != null) ...[
  2. SizedBox(height: screenHeight * 0.025),
  3. Material(
  4. color: Colors.transparent,
  5. child: InkWell(
  6. onTap: onRetry,
  7. borderRadius: BorderRadius.circular(12),
  8. splashColor: Colors.transparent,
  9. highlightColor: Colors.transparent,
  10. child: Container(
  11. padding: const EdgeInsets.symmetric(
  12. horizontal: 18,
  13. vertical: 10,
  14. ),
  15. decoration: AppSurfaceStyles.card(
  16. context,
  17. backgroundColor: Theme.of(context).scaffoldBackgroundColor,
  18. radius: 12,
  19. isHighlighted: true,
  20. ).copyWith(
  21. boxShadow: [
  22. BoxShadow(
  23. color: Colors.grey.withOpacity(
  24. Theme.of(context).brightness == Brightness.dark ? 0.25 : 0.15,
  25. ), // ✅ neutral gray shadow
  26. blurRadius: 8,
  27. offset: const Offset(0, 3),
  28. ),
  29. ],
  30. ),
  31. child: Row(
  32. mainAxisSize: MainAxisSize.min,
  33. children: [
  34. Icon(
  35. Icons.refresh,
  36. size: 18,
  37. color: Theme.of(context).brightness == Brightness.dark
  38. ? Colors.white
  39. : Colors.black,
  40. ),
  41. const SizedBox(width: 8),
  42. Text(
  43. 'Retry',
  44. style: Theme.of(context).textTheme.titleMedium?.copyWith(
  45. fontWeight: FontWeight.w600,
  46. color: Theme.of(context).brightness == Brightness.dark
  47. ? Colors.white
  48. : Colors.black,
  49. ),
  50. ),
  51. ],
  52. ),
  53. ),
  54. ),
  55. ),
  56. ],
Advertisement
Add Comment
Please, Sign In to add comment