phase3: nullfix arg-bang handler (argument_type/invalid_assignment). 872 -> 621

This commit is contained in:
2026-07-25 18:16:40 +08:00
parent c21ccbd54d
commit a76b872966
65 changed files with 282 additions and 257 deletions

View File

@@ -77,7 +77,7 @@ class Util {
Future onSelectNotification(String payload, {bool replace=false}) async {
print('payload: $payload');
if (payload != null && payload.isNotEmpty) {
Routes.router.navigateTo(store.state.context, payload, replace: replace);
Routes.router.navigateTo(store.state.context!, payload, replace: replace);
}
}
@@ -132,7 +132,7 @@ class Util {
Future onDidReceiveLocalNotification(int id, String title, String body, String payload) async {
showDialog(
context: store.state.context,
context: store.state.context!,
builder: (BuildContext context) => CupertinoAlertDialog(
title: Text(title),
content: Text(body),
@@ -207,7 +207,7 @@ class Util {
width: width,
height: width,
fit: fit,
placeholder: (context, url) => Utils.imageLoadingIndicator(width: width, height: height),
placeholder: (context, url) => Utils.imageLoadingIndicator(width: width!, height: height!),
errorWidget: errorWidget != null ? errorWidget : (context, url, error) {
return Image.asset(
'assets/images/not_found.png',