pwa_safe_area 0.1.0
pwa_safe_area: ^0.1.0 copied to clipboard
Flutter web fix for iOS home-screen PWAs where env(safe-area-inset-*) reads zero: re-asserts viewport-fit=cover and merges real CSS safe-area insets into MediaQuery.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add pwa_safe_areaThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
pwa_safe_area: ^0.1.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:pwa_safe_area/pwa_safe_area.dart';