Limited types in defining constants and custom data types

Custom Code

I am trying to define a list of constant values with global scope (i.e. that can be accessed by different action codes and functions througout my app). The values in the list are to be immutable instances of a custom class (or struct).

This has come up against two problems in Flutterflow:

  1. It does not seem to be possible to define a Custom Data Type that contains fields whose type is a class defined in a package. So for example I cannot define a field of type Guid() from the FlutterBluePlus package. The fields of a Custom Data Type can only be a type from a very limited set of built-in types. This means that it is not possible to define a global scope data type that contains fields other than the Flutterflow predefined built-in types.

  2. It does not seem to be possible to define a global scope constant of a Custom Data Type. The only types allowed are a very small set of Flutterflow basic and built-in types.

Am I correct in these? Is there any way around them? They seem like quite serious limitations in the Flutterflow framework.

What have you tried so far?

Various combinations of custom data types and fields.

Did you check FlutterFlow's Documentation for this topic?
Yes
1 reply