phase3: nullfix arg-bang handler (argument_type/invalid_assignment). 872 -> 621
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user