Skip to content

Commit

Permalink
Replace deprecated withOpacity with withValues
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandgeider committed Dec 17, 2024
1 parent 2d6a2db commit 7afe947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/widgets/add_exercise/preview_images.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import 'dart:io';

import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

import 'package:wger/providers/add_exercise.dart';

import 'mixins/image_picker_mixin.dart';

class PreviewExerciseImages extends StatelessWidget with ExerciseImagePickerMixin {
Expand All @@ -30,7 +30,7 @@ class PreviewExerciseImages extends StatelessWidget with ExerciseImagePickerMixi
padding: const EdgeInsets.all(3.0),
child: Container(
decoration: BoxDecoration(
color: Colors.grey.withOpacity(0.5),
color: Colors.grey.withValues(alpha: 0.5),
borderRadius: const BorderRadius.all(Radius.circular(20)),
),
child: IconButton(
Expand Down

0 comments on commit 7afe947

Please sign in to comment.