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( child: Container(
padding: const EdgeInsets.all(16.0), padding: const EdgeInsets.all(16.0),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Theme.of(context).colorScheme.background, color: Theme.of(context).colorScheme.surface,
borderRadius: BorderRadius.circular(20.0), borderRadius: BorderRadius.circular(20.0),
), ),
child: Column( child: Column(

View File

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

View File

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

View File

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