fix(runtime): 37 late fields with == null checks were wrongly migrated -> nullable. Fixes LateInitializationError crashes on page navigation (shop/checkout/comment/data pages)

This commit is contained in:
2026-08-01 01:58:36 +08:00
parent b49fb59db4
commit 0526baa3c8
32 changed files with 317 additions and 317 deletions

View File

@@ -30,7 +30,7 @@ class BuyService extends StatefulWidget {
}
class BuyServiceState extends State<BuyService> {
late Map<String, dynamic> data;
Map<String, dynamic>? data;
@override
Widget build(BuildContext context) {
@@ -51,9 +51,9 @@ class BuyServiceState extends State<BuyService> {
return ResponsiveBuilder(
builder: (context, sizingInformation) =>
ScreenTypeLayout(
mobile: MobileBuyService(data),
tablet: DesktopBuyService(data),
desktop: DesktopBuyService(data),
mobile: MobileBuyService(data!),
tablet: DesktopBuyService(data!),
desktop: DesktopBuyService(data!),
),
);
}
@@ -73,7 +73,7 @@ class BuyServiceState extends State<BuyService> {
}
).then((value) {
data = value;
data['domain'] = widget.domain;
data!['domain'] = widget.domain;
print('data: $data');
setState(() {});
}).onError((error, stackTrace) {