Skip to content

InputDecoration.applyDefaults ignores some properties #127330

@Oleh-Sv

Description

@Oleh-Sv

Is there an existing issue for this?

Steps to reproduce

  1. Create empty InputDecoration
  2. ApplyDefaults with InputDecorationTheme where passed suffixIconColor or prefixIconColor

Expected results

InpuDecoration has suffixIconColor and prefixIconColor values

Actual results

They are still null

Code sample

Code sample
  final a = InputDecoration().applyDefaults(
    InputDecorationTheme(
      suffixIconColor: Colors.red,
      prefixIconColor: Colors.blue,
    ),
  );

  print(a.suffixIconColor);

Screenshots or Video

No response

Logs

No response

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.10.1, on macOS 13.3.1 22E772610a darwin-arm64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc2)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.78.2)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

Metadata

Metadata

Assignees

Labels

f: material designflutter/packages/flutter/material repository.found in release: 3.10Found to occur in 3.10found in release: 3.11Found to occur in 3.11frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

Status

Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions