@@ -92,6 +92,7 @@ class _WebViewExampleState extends State<WebViewExample> {
9292 return JavascriptChannel (
9393 name: 'Toaster' ,
9494 onMessageReceived: (JavascriptMessage message) {
95+ // ignore: deprecated_member_use
9596 Scaffold .of (context).showSnackBar (
9697 SnackBar (content: Text (message.message)),
9798 );
@@ -107,6 +108,7 @@ class _WebViewExampleState extends State<WebViewExample> {
107108 return FloatingActionButton (
108109 onPressed: () async {
109110 final String url = await controller.data.currentUrl ();
111+ // ignore: deprecated_member_use
110112 Scaffold .of (context).showSnackBar (
111113 SnackBar (content: Text ('Favorited $url ' )),
112114 );
@@ -215,6 +217,7 @@ class SampleMenu extends StatelessWidget {
215217 WebViewController controller, BuildContext context) async {
216218 final String cookies =
217219 await controller.evaluateJavascript ('document.cookie' );
220+ // ignore: deprecated_member_use
218221 Scaffold .of (context).showSnackBar (SnackBar (
219222 content: Column (
220223 mainAxisAlignment: MainAxisAlignment .end,
@@ -230,6 +233,7 @@ class SampleMenu extends StatelessWidget {
230233 void _onAddToCache (WebViewController controller, BuildContext context) async {
231234 await controller.evaluateJavascript (
232235 'caches.open("test_caches_entry"); localStorage["test_localStorage"] = "dummy_entry";' );
236+ // ignore: deprecated_member_use
233237 Scaffold .of (context).showSnackBar (const SnackBar (
234238 content: Text ('Added a test entry to cache.' ),
235239 ));
@@ -243,6 +247,7 @@ class SampleMenu extends StatelessWidget {
243247
244248 void _onClearCache (WebViewController controller, BuildContext context) async {
245249 await controller.clearCache ();
250+ // ignore: deprecated_member_use
246251 Scaffold .of (context).showSnackBar (const SnackBar (
247252 content: Text ("Cache cleared." ),
248253 ));
@@ -254,6 +259,7 @@ class SampleMenu extends StatelessWidget {
254259 if (! hadCookies) {
255260 message = 'There are no cookies.' ;
256261 }
262+ // ignore: deprecated_member_use
257263 Scaffold .of (context).showSnackBar (SnackBar (
258264 content: Text (message),
259265 ));
@@ -306,6 +312,7 @@ class NavigationControls extends StatelessWidget {
306312 if (await controller.canGoBack ()) {
307313 await controller.goBack ();
308314 } else {
315+ // ignore: deprecated_member_use
309316 Scaffold .of (context).showSnackBar (
310317 const SnackBar (content: Text ("No back history item" )),
311318 );
@@ -321,6 +328,7 @@ class NavigationControls extends StatelessWidget {
321328 if (await controller.canGoForward ()) {
322329 await controller.goForward ();
323330 } else {
331+ // ignore: deprecated_member_use
324332 Scaffold .of (context).showSnackBar (
325333 const SnackBar (
326334 content: Text ("No forward history item" )),
0 commit comments