skip to Main Content

After updating Flutter and Dart, building app fails due to following error.

Error (Xcode):
../../.pub-cache/hosted/pub.dev/flutter_screenutil-5.6.0/lib/src/screen_util.dar t:58:5: Error: Type ‘FlutterWindow’ not found.

2 apps have same error, and it worked before updating.
Other collaborator also has error after updating, but different point:

Error(Xcode): …. firebase_app.dart:18:25: Error: Member not
found:’FirebaseAppPlatform.verifyExtends’

Since We have different error, code or packages might not be the problem.

I tried ‘flutter clean’, ‘clean build folder @Xcode’, ‘pod repo update’, but still error exists.

It is very thankful if you have any solutions.

2

Answers


  1. I solved it by changing flutter channel to stable. Type ‘flutter channel’ to know which branch you are currently using.
    Type in terminal: ‘flutter channel stable’, then ‘flutter upgrade’

    Login or Signup to reply.
  2. FlutterWindow API is deprecated.

    Now if you are using the flutter master channel. Then edit the source code by changing the type FlutterWindow to FlutterView in all the dart files which shows the error

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search