📝 替换项目中的所有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

@@ -119,7 +119,7 @@ class _InteractiveViewerDemo3State extends State<InteractiveViewerDemo3>
onPressed: _animateResetInitialize);
}
var _x = 0.0;
double _x = 0.0;
Widget _buildButton2() {
return MaterialButton(
@@ -132,7 +132,7 @@ class _InteractiveViewerDemo3State extends State<InteractiveViewerDemo3>
side: BorderSide(width: 2.0, color: Color(0xFFFFDFDFDF)),
),
onPressed: () {
var temp = _transformationController.value.clone();
Matrix4 temp = _transformationController.value.clone();
temp.translate(_x - 4);
_transformationController.value = temp;
});
@@ -149,7 +149,7 @@ class _InteractiveViewerDemo3State extends State<InteractiveViewerDemo3>
side: BorderSide(width: 2.0, color: Color(0xFFFFDFDFDF)),
),
onPressed: () {
var temp = _transformationController.value.clone();
Matrix4 temp = _transformationController.value.clone();
temp.translate(_x + 4);
_transformationController.value = temp;
});