Skip to content

flutter_flow_icon_button.dart: No name parameter 'iconColor' #773

@anthonygoslar

Description

@anthonygoslar

Has your issue been reported?

  • I have searched the existing issues and confirm it has not been reported.
  • 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

When building my app using flutter build ipa, the following error is thrown:

1 warning generated.
lib/flutter_flow/flutter_flow_icon_button.dart:91:7: Error: No named parameter with the name 'iconColor'.
iconColor: MaterialStateProperty.resolveWith<Color?>(
^^^^^^^^^
../../development/flutter/packages/flutter/lib/src/material/button_style.dart:123:9: Context: Found this candidate, but the arguments don't match.
const ButtonStyle({
^^^^^^^^^^^

This issue is fixed by commenting out lines 91-103 in the following code in flutter_flow_icon_button.dart:

Expected Behavior

The app to build without the error

Steps to Reproduce

When building my app using flutter build ipa, the following error is thrown:

1 warning generated.
lib/flutter_flow/flutter_flow_icon_button.dart:91:7: Error: No named parameter with the name 'iconColor'.
iconColor: MaterialStateProperty.resolveWith<Color?>(
^^^^^^^^^
../../development/flutter/packages/flutter/lib/src/material/button_style.dart:123:9: Context: Found this candidate, but the arguments don't match.
const ButtonStyle({
^^^^^^^^^^^

This issue is fixed by

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

It's in Android Studio

Context

I can't build the app in Android Studio.

Visual documentation

image

Additional Info

No response

Environment

I am building the app in Android Studio on macOS Ventura 13.3.1

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions