Home > database >  Flutter Error: No named parameter with the name 'isVisible' error on url_launcher_web and
Flutter Error: No named parameter with the name 'isVisible' error on url_launcher_web and

Time:02-06

after running flutter pub upgrade I get these errors when I run flutter build web

../../development/flutter/.pub-cache/hosted/pub.dartlang.org/pointer_interceptor-0.9.2/lib/src/web.dart:31:6: Error: No named parameter with the name 'isVisible'.
  }, isVisible: false);
     ^^^^^^^^^

../../development/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.7/lib/url_launcher_web.dart:50:61: Error: No named parameter with the name 'isVisible'.
        .registerViewFactory(linkViewType, linkViewFactory, isVisible: false);

CodePudding user response:

I searched isVisible: false property in url_launcher_web and pointer_interceptor packages files in the flutter dependencies directory and deleted them. After running flutter pub get in the terminal the errors were fixed.

CodePudding user response:

I had the same problem with url_launcher_web which did not solve by running flutter pub get. In my case upgrading the flutter version fixed the problem.

Before:

Flutter 2.5.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 18116933e7 (4 months ago) • 2021-10-15 10:46:35 -0700
Engine • revision d3ea636dc5
Tools • Dart 2.14.4

After:

Flutter 2.10.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 5f105a6ca7 (3 days ago) • 2022-02-01 14:15:42 -0800
Engine • revision 776efd2034
Tools • Dart 2.16.0 • DevTools 2.9.2
  •  Tags:  
  • Related