Skip to content

Incorrect default values of FadeInTileDisplay parameters in code docs #2098

Open
@ndonkoHenri

Description

@ndonkoHenri

What is the bug?

I am noticing an inconsistency in tile_display.dart, concerning startOpacity and reloadStartOpacity:

const factory TileDisplay.fadeIn({
/// Duration of the fade. Defaults to 100ms.
Duration duration,
/// Opacity start value when a tile is faded in, default 1.0. The allowed
/// range is (0.0 - 1.0).
double startOpacity,
/// Opacity start value when a tile is reloaded, default 1.0. Valid range is
/// (0.0 - 1.0).
double reloadStartOpacity,
}) = FadeInTileDisplay._;

vs

const FadeInTileDisplay._({
this.duration = const Duration(milliseconds: 100),
this.startOpacity = 0.0,
this.reloadStartOpacity = 0.0,

One says the default for them is 1.0, but the definition in the other one says 0.0.

How can we reproduce it?

Do you have a potential solution?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P: 3 (low)(Default priority for feature requests)S: docsScoped to the code or external documentation

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions