79441179

Date: 2025-02-15 08:32:37
Score: 1
Natty:
Report link

cerealexx suggest a decision there, it works https://github.com/flutter/flutter/issues/84833

import 'package:universal_html/html.dart' as html;

// Check if it's an installed PWA
final isPwa = kIsWeb &&
  html.window.matchMedia('(display-mode: standalone)').matches;
// Check if it's web iOS
final isWebiOS = kIsWeb &&
  html.window.navigator.userAgent
  .contains(RegExp(r'iPad|iPod|iPhone'));

// Use Container with color instead of Padding if you need to
return Padding(
  padding: EdgeInsets.only(bottom: isPwa && isWebiOS ? 25 : 0),
  child: YourApp(),
);
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: hodov