Rene
0
Q:

how to get screen size in flutter

double height = MediaQuery.of(context).size.height;
double width = MediaQuery.of(context).size.width;
2
double width = MediaQuery. of(context). size. width;
double height = MediaQuery. of(context). size. height;
1
double width = MediaQuery.of(context).size.width;
double height = MediaQuery.of(context).size.height;
0
double height = MediaQuery.of(context).size.height;
0
import 'package:flutter_screenutil/flutter_screenutil.dart';
1
dependencies:
  flutter:
    sdk: flutter
  # add flutter_ScreenUtil
  flutter_screenutil: ^0.4.2
0

New to Communities?

Join the community