null safety

This commit is contained in:
phyothandar
2021-09-10 15:22:11 +06:30
parent 51a5fe0740
commit c90661b262
24 changed files with 194 additions and 193 deletions

View File

@@ -154,7 +154,7 @@ class _PaymentPageEditState extends State<PaymentPageEdit> {
onPressed: () => Navigator.of(context).pop(),
),
backgroundColor: primaryColor,
title: Text(AppTranslations.of(context).text("pm_.title")),
title: Text(AppTranslations.of(context)!.text("pm_.title")),
),
body: Padding(
padding: const EdgeInsets.all(8.0),
@@ -189,7 +189,7 @@ class _PaymentPageEditState extends State<PaymentPageEdit> {
_widget = initialImage();
} else {
_widget = InkWell(
child: Image.asset(widget.receipt!.fileUrl, fit: BoxFit.cover),
child: Image.asset(widget.receipt!.fileUrl!, fit: BoxFit.cover),
onTap: () {},
);
}