Build error - 'toARGB32' isn't defined for the class 'Color'.

Integrations

Is there anything I can try to resolve this build error? It built fine a few months ago when I last tried. All of the dependancies on my custom code are set to any.

*************

/opt/.pub-cache/hosted/pub.dev/geolocator_android-5.0.1+1/lib/src/types/foreground_settings.dart:122:23: Error: The method 'toARGB32' isn't defined for the class 'Color'.

  • 'Color' is from 'dart:ui'.
    Try correcting the name to the name of an existing method, or defining a method named 'toARGB32'.
    'color': color?.toARGB32(),
    ^^^^^^^^
    Target kernel_snapshot_program failed: Exception

FAILURE: Build failed with an exception.

What have you tried so far?

Building more times, same result

Did you check FlutterFlow's Documentation for this topic?
No
1
2 replies