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:
@@ -32,7 +32,7 @@ class DesktopPayNow extends StatefulWidget {
|
||||
}
|
||||
|
||||
class DesktopPayNowState extends State<DesktopPayNow> {
|
||||
late Order order;
|
||||
Order? order;
|
||||
late List<PaymentPlatform> paymentPlatforms;
|
||||
late User _user;
|
||||
|
||||
@@ -86,7 +86,7 @@ class DesktopPayNowState extends State<DesktopPayNow> {
|
||||
),
|
||||
),
|
||||
Text(
|
||||
'\$${order.totalPrice!.toStringAsFixed(2)}',
|
||||
'\$${order!.totalPrice!.toStringAsFixed(2)}',
|
||||
style: TextStyle(
|
||||
fontSize: 24.0,
|
||||
fontWeight: FontWeight.bold,
|
||||
@@ -206,7 +206,7 @@ class DesktopPayNowState extends State<DesktopPayNow> {
|
||||
),
|
||||
),
|
||||
onTap: () {
|
||||
Util.goPayment(context, order, paymentPlatform);
|
||||
Util.goPayment(context, order!, paymentPlatform);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user