Skip to content

Project won't build if there's a PlacePicker without an icon #9

@aemelyanovff

Description

@aemelyanovff

Issue tracker is ONLY used for reporting bugs. New feature suggestions and questions should be discussed on Community or submitted through our user feedback form.

Your issue may already be reported! Please search in the issue tracker before creating one.

Please thumbs up this issue if you have also experienced it. You may also add more information if there is something relevant that was not mentioned. However, please refrain from comments that are not constructive, like "I have this problem too", etc.

Expected behavior

Either projects with PlacePicker without icon build, or there's something preventing users from creating PlacePickers without icons.

Current behavior

A user can delete the icon from a PlacePicker widget, but the project won't build anymore.

To Reproduce

Steps to reproduce the behavior:

  1. Create new project
  2. Add PlacePicker icon.
  3. Open widget properties
  4. Delete "Icon"
  5. Try building the project (click "Run" or "Test"), observe that it fails.

The error message is like this:

Error: Command failed: flutter build web  --web-renderer html --no-pub
Target dart2js failed: Exception:
lib/home_page/home_page_widget.dart:47:37:
Error: Required named parameter 'icon' must be provided.
              FlutterFlowPlacePicker(
                                    ^
lib/flutter_flow/flutter_flow_place_picker.dart:13:9:
Info: Found this candidate, but the arguments don't match.
  const FlutterFlowPlacePicker({
        ^^^^^^^^^^^^^^^^^^^^^^
Error: Compilation failed.

Exception: Failed to compile application for the Web.

Context

Trying to use PlacePicker widget.

Screenshots

N/A

Your environment

  • Version of FlutterFlow used: v3.0, September 21, 2022.
  • Platform (e.g. Web, MacOS Desktop): Web
  • Browser name and version: Chrome Version 105.0.5195.125 (Official Build) (x86_64).
  • Operating system and version (desktop or mobile): MacOS 12.5.1 (Monterey)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions