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

@ -127,7 +127,7 @@ class _ClientScreenState extends State<ClientScreen> {
style: TextStyle(
fontWeight: FontWeight.w500,
fontSize: 16,
color: Theme.of(context).primaryColor
color: Theme.of(context).colorScheme.primary
),
),
);
@ -233,7 +233,7 @@ class _ClientScreenState extends State<ClientScreen> {
? Switch(
value: value!,
onChanged: onChange,
activeColor: Theme.of(context).primaryColor,
activeColor: Theme.of(context).colorScheme.primary,
)
: Padding(
padding: const EdgeInsets.symmetric(vertical: 14),
@ -434,7 +434,7 @@ class _ClientScreenState extends State<ClientScreen> {
Padding(
padding: const EdgeInsets.symmetric(horizontal: 24),
child: Material(
color: Theme.of(context).primaryColor.withOpacity(0.1),
color: Theme.of(context).colorScheme.primary.withOpacity(0.1),
borderRadius: BorderRadius.circular(28),
child: InkWell(
onTap: editMode
@ -461,7 +461,7 @@ class _ClientScreenState extends State<ClientScreen> {
onChanged: editMode == true
? (value) => enableDisableGlobalSettingsFiltering()
: null,
activeColor: Theme.of(context).primaryColor,
activeColor: Theme.of(context).colorScheme.primary,
)
],
),
@ -502,7 +502,7 @@ class _ClientScreenState extends State<ClientScreen> {
Padding(
padding: const EdgeInsets.symmetric(horizontal: 24),
child: Material(
color: Theme.of(context).primaryColor.withOpacity(0.1),
color: Theme.of(context).colorScheme.primary.withOpacity(0.1),
borderRadius: BorderRadius.circular(28),
child: InkWell(
onTap: editMode == true
@ -529,7 +529,7 @@ class _ClientScreenState extends State<ClientScreen> {
onChanged: editMode == true
? (value) => updateServicesGlobalSettings(value)
: null,
activeColor: Theme.of(context).primaryColor,
activeColor: Theme.of(context).colorScheme.primary,
)
],
),