phase3: @required->required keyword, nullable for-in iterator fix. 309->251

This commit is contained in:
2026-07-31 14:49:02 +08:00
parent 1aa7cf3477
commit ab06fadea8
20 changed files with 47 additions and 47 deletions

View File

@@ -582,7 +582,7 @@ class ShopState extends State<Shop>
children: <Widget>[],
);
if (comment.images!.length > 0) {
for (ProductImage image in comment.images) {
for (ProductImage image in comment.images!) {
imageRow.children.add(
GestureDetector(
child: Container(
@@ -1416,7 +1416,7 @@ class ShopState extends State<Shop>
))
],
)));
for (var p in cp.products) {
for (var p in cp.products!) {
var pStack = new Stack(
children: <Widget>[],
);
@@ -1932,9 +1932,9 @@ class ShopState extends State<Shop>
class _SliverAppBarDelegate2 extends SliverPersistentHeaderDelegate {
_SliverAppBarDelegate2({
@required this.minHeight,
@required this.maxHeight,
@required this.child,
required this.minHeight,
required this.maxHeight,
required this.child,
});
final double minHeight;