Improved non dynamic theme

This commit is contained in:
Juan Gilsanz Polo 2023-01-25 20:51:23 +01:00
parent 386af8e809
commit 1f0f158251
40 changed files with 118 additions and 277 deletions

View file

@ -31,10 +31,10 @@ class CustomRadioToggle extends StatelessWidget {
),
decoration: BoxDecoration(
color: groupSelected == value
? Theme.of(context).primaryColor
: Theme.of(context).primaryColor.withOpacity(0.05),
? Theme.of(context).colorScheme.primary
: Theme.of(context).colorScheme.primary.withOpacity(0.05),
border: Border.all(
color: Theme.of(context).primaryColor
color: Theme.of(context).colorScheme.primary
),
borderRadius: BorderRadius.circular(30)
),
@ -48,7 +48,7 @@ class CustomRadioToggle extends StatelessWidget {
fontWeight: FontWeight.w500,
color: groupSelected == value
? Colors.white
: Theme.of(context).primaryColor
: Theme.of(context).colorScheme.primary
),
)
],