Skip to content

Commit

Permalink
refactor: Use AppColors instead of theme scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
enrique-lozano committed Jan 24, 2024
1 parent b1b03d5 commit bf0b4da
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/app/home/widgets/home_drawer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class UserGreting extends StatelessWidget {
style: TextStyle(
fontWeight: FontWeight.w300,
fontSize: 12,
color: Theme.of(context).colorScheme.onBackground,
color: AppColors.of(context).onBackground,
),
),
if (userName == null)
Expand All @@ -116,7 +116,7 @@ class UserGreting extends StatelessWidget {
Text(
userName!,
style: TextStyle(
color: Theme.of(context).colorScheme.onBackground,
color: AppColors.of(context).onBackground,
),
),
],
Expand Down
2 changes: 1 addition & 1 deletion lib/app/transactions/form/calculator_modal.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class _AmountSelectorState extends State<AmountSelector> {
Color? bgColor,
Color? textColor,
}) {
textColor ??= Theme.of(context).colorScheme.onBackground;
textColor ??= AppColors.of(context).onBackground;
bgColor ??= AppColors.of(context).background;

onButtonPress() {
Expand Down
2 changes: 2 additions & 0 deletions lib/core/database/services/currency/currency_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ class CurrencyService {
final _currencyTableName = 'currencies';
final _currencyNamesTableName = 'currencyNames';

// TODO: i18n

String get _baseQuery =>
'SELECT currency.code, currency.symbol, names.es as name FROM $_currencyTableName as currency'
' JOIN $_currencyNamesTableName as names ON currency.code = names.currencyCode';
Expand Down
2 changes: 1 addition & 1 deletion lib/core/services/filters/date_range_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class DateRangeService {
if (iconText != null)
Container(
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.onBackground,
color: AppColors.of(context).onBackground,
borderRadius: BorderRadius.circular(4)),
padding:
const EdgeInsets.symmetric(vertical: 2, horizontal: 8),
Expand Down

0 comments on commit bf0b4da

Please sign in to comment.