Can’t build flutter application on emulator for android or iOS when building from Mac but can easily build on android from windows vac

0
57

[ad_1]

I can’t understand this error. I am getting this when trying to build on iOS from Mac:

Crash when compiling package:flutter/src/widgets/default_text_editing_shortcuts.dart,
at character offset null:
NoSuchMethodError: The getter ‘reference’ was called on null.

And when I try and build on android I get an endless list of errors including this:

../Documents/Development/Dev-Tools/FlutterSDK/flutter/packages/flutter/lib/src/widgets/basic.dart:418:9:
Error: ‘BlendMode’ isn’t a type. final BlendMode blendMode;
^^^^^^^^^ ../Documents/Development/Dev-Tools/FlutterSDK/flutter/packages/flutter/lib/src/widgets/basic.dart:518:12:
Error: ‘ImageFilter’ isn’t a type. final ui.ImageFilter filter;
^^^^^^^^^^^ ../Documents/Development/Dev-Tools/FlutterSDK/flutter/packages/flutter/lib/src/widgets/basic.dart:524:9:
Error: ‘BlendMode’ isn’t a type. final BlendMode blendMode;
^^^^^^^^^ ../Documents/Development/Dev-Tools/FlutterSDK/flutter/packages/flutter/lib/src/widgets/basic.dart:622:9:
Error: ‘Size’ isn’t a type. final Size size;

I am running the latest flutter on both my windows and Mac flutter doctor below:

[✓] Flutter (Channel stable, 3.3.7, on macOS 12.3.1 21E258 darwin-x64,
locale en-GB) [✓] Android toolchain – develop for Android devices
(Android SDK version 30.0.3) [✓] Xcode – develop for iOS and macOS
(Xcode 13.3.1) [✓] Chrome – develop for the web [✓] Android Studio
(version 2021.3) [✓] VS Code (version 1.73.0) [✓] Connected device (4
available) [✓] HTTP Host Availability

I have removed all extensions like this stackover flow suggested:
Crash when compiling null, at character offset null – Flutter and Dart

quite at a loss here

[ad_2]