EdgeInsetsGeometry.fromViewPadding constructor
- ViewPadding padding,
- double devicePixelRatio
Creates EdgeInsets that match the given view padding.
If you need the current system padding or view insets in the context of a widget, consider using MediaQuery.paddingOf to obtain these values rather than using the value from a FlutterView directly, so that you get notified of changes.
Implementation
factory EdgeInsetsGeometry.fromViewPadding(ui.ViewPadding padding, double devicePixelRatio) =
EdgeInsets.fromViewPadding;