screenWidth property
double
get
screenWidth
The current screen width in logical pixels.
Implementation
double get screenWidth {
final data = FlexiInheritedWidget.of(_context, aspect: FlexiAspect.width);
if (data == null) {
throw FlutterError(
'FlexiConfig not found in context. Make sure to wrap your app with FlexiConfig.');
}
return data.screenWidth;
}