🐛 Fix late not initialized

This commit is contained in:
LittleSheep 2024-06-23 19:41:50 +08:00
parent 6d755fc1b7
commit 580d9c7151

View File

@ -83,7 +83,7 @@ class _PersonalizeScreenState extends State<PersonalizeScreen> {
final AttachmentProvider provider = Get.find(); final AttachmentProvider provider = Get.find();
late Response attachResp; Response? attachResp;
try { try {
final file = File(image.path); final file = File(image.path);
final hash = await calculateFileSha256(file); final hash = await calculateFileSha256(file);
@ -96,6 +96,7 @@ class _PersonalizeScreenState extends State<PersonalizeScreen> {
} catch (e) { } catch (e) {
setState(() => _isBusy = false); setState(() => _isBusy = false);
context.showErrorDialog(e); context.showErrorDialog(e);
return;
} }
final client = auth.configureClient('passport'); final client = auth.configureClient('passport');