forked from lxm_flutter/FlutterUnit
📝 替换项目中的所有var
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user