Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (onRetry != null) ...[
- SizedBox(height: screenHeight * 0.025),
- Material(
- color: Colors.transparent,
- child: InkWell(
- onTap: onRetry,
- borderRadius: BorderRadius.circular(12),
- splashColor: Colors.transparent,
- highlightColor: Colors.transparent,
- child: Container(
- padding: const EdgeInsets.symmetric(
- horizontal: 18,
- vertical: 10,
- ),
- decoration: AppSurfaceStyles.card(
- context,
- backgroundColor: Theme.of(context).scaffoldBackgroundColor,
- radius: 12,
- isHighlighted: true,
- ).copyWith(
- boxShadow: [
- BoxShadow(
- color: Colors.grey.withOpacity(
- Theme.of(context).brightness == Brightness.dark ? 0.25 : 0.15,
- ), // ✅ neutral gray shadow
- blurRadius: 8,
- offset: const Offset(0, 3),
- ),
- ],
- ),
- child: Row(
- mainAxisSize: MainAxisSize.min,
- children: [
- Icon(
- Icons.refresh,
- size: 18,
- color: Theme.of(context).brightness == Brightness.dark
- ? Colors.white
- : Colors.black,
- ),
- const SizedBox(width: 8),
- Text(
- 'Retry',
- style: Theme.of(context).textTheme.titleMedium?.copyWith(
- fontWeight: FontWeight.w600,
- color: Theme.of(context).brightness == Brightness.dark
- ? Colors.white
- : Colors.black,
- ),
- ),
- ],
- ),
- ),
- ),
- ),
- ],
Advertisement
Add Comment
Please, Sign In to add comment