ignore deprecated api
This commit is contained in:
@@ -9,7 +9,8 @@ Future<void> launchURL(BuildContext context, String url) async {
|
|||||||
if (await canLaunch(url)) {
|
if (await canLaunch(url)) {
|
||||||
await launch(url);
|
await launch(url);
|
||||||
} else {
|
} else {
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
// ignore: deprecated_member_use
|
||||||
|
Scaffold.of(context).showSnackBar(
|
||||||
SnackBar(
|
SnackBar(
|
||||||
content: Text('Cannot launch the url'),
|
content: Text('Cannot launch the url'),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user