WT1.1.11 Null-Safe migration
This commit is contained in:
@@ -2,10 +2,9 @@ import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class TestProgress extends AnimatedWidget {
|
||||
|
||||
TestProgress({
|
||||
Key key,
|
||||
@required Animation<double> animation,
|
||||
Key? key,
|
||||
required Animation<double> animation,
|
||||
}) : super(key: key, listenable: animation);
|
||||
|
||||
@override
|
||||
@@ -15,14 +14,14 @@ class TestProgress extends AnimatedWidget {
|
||||
return Transform.scale(
|
||||
alignment: Alignment.center,
|
||||
scale: animation.value,
|
||||
origin: Offset(-5,0),
|
||||
origin: Offset(-5, 0),
|
||||
child: Container(
|
||||
alignment: Alignment.center,
|
||||
padding: EdgeInsets.only(left: 0),
|
||||
child: Icon(Icons.star, color: Colors.yellow,)
|
||||
),
|
||||
alignment: Alignment.center,
|
||||
padding: EdgeInsets.only(left: 0),
|
||||
child: Icon(
|
||||
Icons.star,
|
||||
color: Colors.yellow,
|
||||
)),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user