Skip to content

Update fromSeeds( to return ColorScheme from material_ui instead of material of the SDK #24

Description

@makri-aymen

In the latest Flutter SDK 3.47.0, the material package is now decoupled from the SDK, but this package is still using material from the SDK,
which causes a type mismatch issue

Activity

  1. self-assigned this
    on Aug 13, 2026
  2. rydmike commented on Aug 13, 2026

    @rydmike
    Owner

    Thanks @makri-aymen for opening the issue.

    Yes, I'm aware of this, it will probably until next weekend (Sunday, Aug 23), until the compatible version is released.

    Meanwhile, if you really must be on version 3.47 before that you can try using the MaterialUiCompatibilityBridge mentioned in the release notes. Although I have not tested if that actually works as claimed in the release notes.

    I want to bring a number of other improvements and changes to the package at the same time. Since decouple bump recommends bumping major version of packages, I want to include a few other things that may be minor breaking at the same time. I don't want to do two major releases after each other. I might put out a dev/pre release with only the decouple bump first. That should make a fix available sooner.

    Bridging the migration gap

    To facilitate bridging the gap as the ecosystem migrates to the new standalone design libraries, material_ui and cupertino_ui ship with migration utilities. The MaterialUiCompatibilityBridge allows your application to migrate to the standalone packages immediately, even if some of your package dependencies are still using legacy core SDK imports.

    For example, you can wrap your app in the compatibility bridge:

    import 'package:material_ui/material_ui.dart';
    
    void main() {
      runApp(const MyApp());
    }
    
    class MyApp extends StatelessWidget {
      const MyApp({super.key});
    
      @override
      Widget build(BuildContext context) {
        return MaterialApp(
          theme: ThemeData(
            colorScheme: ColorScheme.fromSeed(seedColor: const Color(0xFF6750A4)),
          ),
          builder: (BuildContext context, Widget? child) {
            return MaterialUiCompatibilityBridge(child: child!);
          },
          home: const HomeScreen(),
        );
      }
    }
  3. added this to the 5.0.0 milestone on Aug 13, 2026
  4. rydmike commented on Aug 24, 2026

    @rydmike
    Owner

    @makri-aymen for info version 5.0.0 of FlexSeedScheme has been released it closes this issue.

    It was substantial work to get the package to this level as I included moving to also opting in on Dart 3.13, more tests, improve docs, set up the package for agentic dev with both Codex and Claude.
    Internal dev skills as well as skill for consumers that can be given to agents if needed.

    Also fixed some small bugs.

    The change log: https://pub.dev/packages/flex_seed_scheme/changelog
    A lot of changes, but mostly just version hygiene https://github.com/rydmike/flex_seed_scheme/pull/25/commits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions