You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
386B

  1. import 'package:flutter_screenutil/flutter_screenutil.dart';
  2. extension AppDimension on num {
  3. double get w => ScreenUtil().setWidth(this);
  4. double get h => ScreenUtil().setHeight(this);
  5. double get r => ScreenUtil().radius(this);
  6. double get sp => ScreenUtil().setSp(this);
  7. double get sw => ScreenUtil().screenWidth * this;
  8. double get sh => ScreenUtil().screenHeight * this;
  9. }