-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
f: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.found in release: 3.0Found to occur in 3.0Found to occur in 3.0found in release: 3.1Found to occur in 3.1Found to occur in 3.1frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work on
Description
Steps to Reproduce
- Make a custom
ColorSchemenamedcustomColorSchemeusingColorScheme.fromSeed() - The
seedColorisColors.orange - Set
surfaceTinttoColors.greenusingcopyWith()
ColorScheme customColorScheme = ColorScheme.fromSeed(seedColor: Colors.orange)
.copyWith(
surfaceTint: Colors.green,
);- Make a
Containerwithcolor: customColorScheme.surfaceTint
Container(
width: 100,
height: 100,
color: customColorScheme.surfaceTint,
)Expected results:
A Container filled with Colors.green color
Actual results:
A Container filled with customColorScheme.primary color (tone 40 of Colors.orange used as seed)
Steps to solve the bug:
- Open
color_scheme.dartfromflutter/packages/flutter/lib/src/material/ - Change line 840 from
surfaceTint: _surfaceTint ?? this.surfaceTint,
to
surfaceTint: surfaceTint ?? this.surfaceTint,
Metadata
Metadata
Assignees
Labels
f: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.found in release: 3.0Found to occur in 3.0Found to occur in 3.0found in release: 3.1Found to occur in 3.1Found to occur in 3.1frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work on