screenWidth property
double
get
screenWidth
boxWidth
its screen size width Example:
class Example extends StatelessWidget {
const Example({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Text("${context.screenWidth}");
}
}
Implementation
/// @override
/// Widget build(BuildContext context) {
/// return Text("${context.screenWidth}");
/// }
/// }
/// ```
double get screenWidth => mediaQueryData.size.width;