📝 替换项目中的所有var

This commit is contained in:
toly
2020-10-21 16:06:38 +08:00
parent b837084305
commit 07a97df5b2
159 changed files with 405 additions and 417 deletions

View File

@@ -16,11 +16,11 @@ class CustomAspectRatio extends StatefulWidget {
}
class _CustomAspectRatioState extends State<CustomAspectRatio> {
var _ratio = 0.75;
double _ratio = 0.75;
@override
Widget build(BuildContext context) {
var child = Container(
Widget child = Container(
alignment: Alignment.center,
color: Colors.cyanAccent,
width: 50,
@@ -28,7 +28,7 @@ class _CustomAspectRatioState extends State<CustomAspectRatio> {
child: Text("Static"),
);
var box = AspectRatio(
Widget box = AspectRatio(
aspectRatio: _ratio,
child: Container(
color: Colors.orange,