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

feat(SNP-1717): Add tailor - ThemeExtension generator #121

Merged
merged 3 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/common/mixin/theme_wm_mixin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ mixin ThemeWMMixin<W extends ElementaryWidget, M extends ElementaryModel> on Wid
@override
void didChangeDependencies() {
super.didChangeDependencies();
_colorScheme = AppColorScheme.of(context);
_textScheme = AppTextScheme.of(context);
_colorScheme = context.appColorScheme;
_textScheme = context.appTextScheme;
}
}

Expand Down
4 changes: 2 additions & 2 deletions lib/features/debug/presentation/ui_kit/ui_kit_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class _ColorGrid extends StatelessWidget {

@override
Widget build(BuildContext context) {
final colorScheme = AppColorScheme.of(context);
final colorScheme = context.appColorScheme;
final l10n = context.l10n;
const crossAxisCount = 2;

Expand Down Expand Up @@ -293,7 +293,7 @@ class _ColorCard extends StatelessWidget {

@override
Widget build(BuildContext context) {
final colorScheme = AppColorScheme.of(context);
final colorScheme = context.appColorScheme;

return Card(
color: color,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class DefaultSnackController {
required EasyDialogAnimationConfiguration animationConfiguration,
Duration? autoHideDuration,
}) {
final colorScheme = AppColorScheme.of(context);
final textScheme = AppTextScheme.of(context);
final colorScheme = context.appColorScheme;
final textScheme = context.appTextScheme;
final topPadding = MediaQuery.of(context).viewPadding.top;
return FlutterEasyDialogs.show(
EasyDialog.positioned(
Expand Down
Loading
Loading