Skip to content

Button colors generated from ColorScheme.fromSeed changed #144649

@Hixie

Description

@Hixie

The following demo app used to render like this:

A bright purple button.

As of #144273 (cc @QuncCccccc), it renders like this:

Desaturated purple button.

There doesn't seem to be any way to get the old rendering anymore.

import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData.from(
        colorScheme: ColorScheme.fromSeed(seedColor: const Color.fromARGB(255, 101, 89, 245)),
      ),
      title: 'Button Color Test',
      home: FilledButton(
        onPressed: () {},
        child: const Text(
          'Hello World',
        ),
      ),
    );
  }
}

Metadata

Metadata

Assignees

Labels

c: regressionIt was better in the past than it is nowteam-designOwned by Design Languages team

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions