-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
status: needs triageA potential issue that has not been confirmed as a bug.A potential issue that has not been confirmed as a bug.
Description
Can we access your project?
- I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.
Current Behavior
Exception:
══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following _TypeError was thrown building FutureBuilder<ApiCallResponse>(dirty, dependencies:
[InheritedCupertinoTheme, MediaQuery, _InheritedTheme, _LocalizationsScope-[GlobalKey#82219]],
state: _FutureBuilderState<ApiCallResponse>#3ee59):
type 'List<dynamic>' is not a subtype of type 'List<LegendEntry>'
Expected Behavior
Should work normally and render the component.
The problem is that .map(
loses type and .toList()
returns List<dynamic>
where it should be List<LegendEntry>
:
.asMap()
.entries
.map( // throws an exception
// .map<LegendEntry>( // works
(label) =>
LegendEntry(
chartPieChartColorsList2[label.key %chartPieChartColorsList2.length],
label.value,
),
)
.toList(),
Steps to Reproduce
- Create page with PieChart
- Add Legend labels from a variable (in my case HTTP response)
- See panic on iOS
Reproducible from Blank
- The steps to reproduce above start from a blank project.
Bug Report Code (Required)
ITFXiMmBw891ofpE+aruaMExjmIwGUwbUOc7j9VEGAsjCeLmOuxzdc/sTEpoYuqHfFBUMFGJsH0H/vz8udjXFvcrAzmrGqJ6yM1bUxDjcFOhR4yxBquwZn9fN+RQN0eM0YmFhyJDJttfWmA+7zuqPtmAb3qCf9qOYwx5e6fDbOY=
Visual documentation
Environment
- FlutterFlow version: v6.2.2
- Platform: iOS
- Browser name and version: Chrome
- Operating system and version affected: macOS
Additional Information
No responsef
Metadata
Metadata
Assignees
Labels
status: needs triageA potential issue that has not been confirmed as a bug.A potential issue that has not been confirmed as a bug.