add sizedBox extension

null_safety
小赖 4 years ago
parent 34d9b8981a
commit 7cd8581032

@ -21,5 +21,7 @@ export 'text_field/as_search_text_field.dart';
export 'utils/screen_adapter.dart'; export 'utils/screen_adapter.dart';
export 'extension/sizedbox_extension.dart';
//`BOTTOM` is external lib //`BOTTOM` is external lib
export 'package:flutter_screenutil/flutter_screenutil.dart'; export 'package:flutter_screenutil/flutter_screenutil.dart';

@ -0,0 +1,9 @@
import 'package:ansu_ui/ansu_ui.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
extension SizedBoxExt on num {
Widget get wb => SizedBox(width: ScreenUtil().setWidth(this));
Widget get hb => SizedBox(height: ScreenUtil().setWidth(this));
}
Loading…
Cancel
Save