Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YaruMasterDetailThemeData: implement ThemeExtension interface #450

Merged
merged 1 commit into from Dec 4, 2022
Merged

YaruMasterDetailThemeData: implement ThemeExtension interface #450

merged 1 commit into from Dec 4, 2022

Conversation

jpnurmi
Copy link
Member

@jpnurmi jpnurmi commented Dec 4, 2022

Implementing the ThemeExtension interface for YaruMasterDetailThemeData makes it possible to use it in (Yaru)ThemeData.extensions.

YaruTheme(
  data: const YaruThemeData(
    extensions: [
      YaruMasterDetailThemeData(
        ...
      )
    ],
  ),
  builder: (context, yaru, child) {
    return MaterialApp(
      theme: yaru.theme,
      darkTheme: yaru.darkTheme,
      home: Example.create(context),
    );
  },
)

@Feichtmeier Feichtmeier merged commit 959c1c6 into ubuntu:main Dec 4, 2022
@jpnurmi jpnurmi deleted the master-detail-theme-extension branch December 4, 2022 21:33
@jpnurmi jpnurmi mentioned this pull request Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants