OpenFlutter / flutter_screenutil

Flutter screen adaptation, font adaptation, get screen information
https://pub.dartlang.org/packages/flutter_screenutil
Apache License 2.0
3.87k stars 493 forks source link

Error: Superclass has no constructor named 'SizedBox.square'. #438

Closed lazy-xia closed 1 year ago

lazy-xia commented 1 year ago

../../../work/dev/sdk/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_screenutil-5.6.0/lib/src/r_sizedbox.dart:35:9: Error: Superclass has no constructor named 'SizedBox.square'. super.square(key: key, child: child, dimension: dimension); ^^^^^

环境如下 Flutter 2.2.2 • channel stable • https://github.com/flutter/flutter.git Framework • revision d79295af24 (1 year, 5 months ago) • 2021-06-11 08:56:01 -0700 Engine • revision 91c9fc8fe0 Tools • Dart 2.13.3

lizhuoyuan commented 1 year ago

你这应该是低版本flutter没有这个属性? 我这直接写 没有问题

RSizedBox.square(dimension: 20),
github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.