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.
ansu_ui/lib/extension/sizedbox_extension.dart

15 lines
380 B

import 'package:ansu_ui/ansu_ui.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
4 years ago
extension NumExt on num {
4 years ago
///获取宽 SizedBox
4 years ago
Widget get wb => SizedBox(width: this.w);
4 years ago
///获取高 SizedBox
4 years ago
Widget get hb => SizedBox(height: this.w);
///圆角
BorderRadius get radius => BorderRadius.circular(this.w);
}