导入以下包:
import 'package:flutter/rendering.dart';
在main函数中设置值:
void main() {
debugPaintSizeEnabled = true;
runApp(MyApp());
}
导入以下包:
import 'package:flutter/rendering.dart';
在main函数中设置值:
void main() {
debugPaintSizeEnabled = true;
runApp(MyApp());
}