fixed warnings after update

This commit is contained in:
Kima 2024-06-19 22:34:54 +02:00
parent 1b7528236c
commit 5331cdddda
4 changed files with 9 additions and 9 deletions

View File

@ -34,7 +34,7 @@ class GoalCompleteModal extends StatelessWidget {
child: Container(
padding: const EdgeInsets.all(16.0),
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.background,
color: Theme.of(context).colorScheme.surface,
borderRadius: BorderRadius.circular(20.0),
),
child: Column(

View File

@ -360,7 +360,7 @@ class _GoalPlannerScreenState extends State<GoalPlannerScreen> {
child: Container(
padding: const EdgeInsets.only(top: 24.0),
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.background,
color: Theme.of(context).colorScheme.surface,
borderRadius:
const BorderRadius.vertical(top: Radius.circular(24.0)),
boxShadow: [

View File

@ -145,9 +145,9 @@ class _ActivationDashboardState extends State<ActivationDashboard> {
child: TextButton.icon(
onPressed: onManualActivation,
style: ButtonStyle(
foregroundColor: MaterialStatePropertyAll(
foregroundColor: WidgetStatePropertyAll(
Theme.of(context).colorScheme.secondary),
overlayColor: MaterialStatePropertyAll(Theme.of(context)
overlayColor: WidgetStatePropertyAll(Theme.of(context)
.colorScheme
.secondary
.withOpacity(.1)),
@ -182,8 +182,8 @@ class _ActivationDashboardState extends State<ActivationDashboard> {
},
style: ButtonStyle(
foregroundColor:
MaterialStatePropertyAll(AppColors.of(context).text),
overlayColor: MaterialStatePropertyAll(
WidgetStatePropertyAll(AppColors.of(context).text),
overlayColor: WidgetStatePropertyAll(
AppColors.of(context).text.withOpacity(.1)),
),
icon: const Icon(FeatherIcons.arrowLeft, size: 20.0),

View File

@ -242,10 +242,10 @@ const Map<PremiumFeature, String> _featureDescriptions = {
// child: TextButton(
// style: ButtonStyle(
// backgroundColor:
// MaterialStatePropertyAll(color.withOpacity(.25)),
// foregroundColor: MaterialStatePropertyAll(color),
// WidgetStatePropertyAll(color.withOpacity(.25)),
// foregroundColor: WidgetStatePropertyAll(color),
// overlayColor:
// MaterialStatePropertyAll(color.withOpacity(.1))),
// WidgetStatePropertyAll(color.withOpacity(.1))),
// onPressed: () {
// Navigator.of(context, rootNavigator: true)
// .push(MaterialPageRoute(builder: (context) {