ignore deprecated api

This commit is contained in:
Neevash Ramdial
2021-01-15 12:37:01 -04:00
parent 022386d457
commit d4b0ab87e1
+2 -1
View File
@@ -9,7 +9,8 @@ Future<void> launchURL(BuildContext context, String url) async {
if (await canLaunch(url)) {
await launch(url);
} else {
ScaffoldMessenger.of(context).showSnackBar(
// ignore: deprecated_member_use
Scaffold.of(context).showSnackBar(
SnackBar(
content: Text('Cannot launch the url'),
),