refactor: Avoid redundant async
This commit is contained in:
parent
9d007815df
commit
d08364688e
15 changed files with 153 additions and 166 deletions
|
|
@ -27,7 +27,7 @@ class QrCodeViewer extends StatelessWidget {
|
|||
void _save(BuildContext context) async {
|
||||
final imageResult = await showFutureLoadingDialog(
|
||||
context: context,
|
||||
future: () async {
|
||||
future: () {
|
||||
final inviteLink = 'https://matrix.to/#/$content';
|
||||
final image = QRImage(inviteLink, size: 256, radius: 1).generate();
|
||||
return compute(encodePng, image);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue