fixed deprecated warnings

This commit is contained in:
Marton Kiss
2025-01-31 10:24:37 +01:00
parent 67649cc5fd
commit b5ee1afe05
102 changed files with 755 additions and 557 deletions

View File

@@ -78,7 +78,7 @@ class ActiveSponsorCard extends StatelessWidget {
borderRadius: BorderRadius.circular(20.0),
boxShadow: [
BoxShadow(
color: glow.withOpacity(.4),
color: glow.withValues(alpha: .4),
blurRadius: 42.0,
),
],
@@ -91,7 +91,7 @@ class ActiveSponsorCard extends StatelessWidget {
RoundedRectangleBorder(borderRadius: BorderRadius.circular(14.0)),
child: InkWell(
borderRadius: BorderRadius.circular(14.0),
splashColor: glow.withOpacity(.2),
splashColor: glow.withValues(alpha: .2),
onTap: () {
Navigator.of(context, rootNavigator: true)
.push(MaterialPageRoute(builder: (context) {

View File

@@ -19,7 +19,9 @@ class GithubCard extends StatelessWidget {
borderRadius: BorderRadius.circular(14.0),
onTap: onPressed,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 12.0).add(const EdgeInsets.only(top: 4.0)),
padding:
const EdgeInsets.symmetric(horizontal: 16.0, vertical: 12.0)
.add(const EdgeInsets.only(top: 4.0)),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
@@ -36,7 +38,7 @@ class GithubCard extends StatelessWidget {
),
const SizedBox(height: 4.0),
Chip(
backgroundColor: Colors.black.withOpacity(.5),
backgroundColor: Colors.black.withValues(alpha: .5),
label: const Text(
"Már támogatsz? Jelentkezz be!",
style: TextStyle(color: Colors.white),

View File

@@ -30,7 +30,7 @@ class PremiumGoalCard extends StatelessWidget {
Container(
height: 12,
decoration: BoxDecoration(
color: Colors.black.withOpacity(.2),
color: Colors.black.withValues(alpha: .2),
borderRadius: BorderRadius.circular(45.0),
),
),
@@ -59,7 +59,8 @@ class PremiumGoalCard extends StatelessWidget {
imageFilter:
ImageFilter.blur(sigmaX: 5, sigmaY: 5),
child: Image.asset("assets/images/heart.png",
color: Colors.black.withOpacity(.3)),
color:
Colors.black.withValues(alpha: .3)),
),
Image.asset("assets/images/heart.png"),
],

View File

@@ -159,7 +159,7 @@ class PlusPlanCard extends StatelessWidget {
),
shadowColor: Colors.transparent,
surfaceTintColor: Colors.white,
color: Colors.white.withOpacity(0.9),
color: Colors.white.withValues(alpha: 0.9),
child: Padding(
padding: const EdgeInsets.only(
top: 18.0, bottom: 16.0, left: 22.0, right: 18.0),
@@ -237,7 +237,7 @@ class PlusPlanCard extends StatelessWidget {
Text(
description,
style: TextStyle(
color: const Color(0xFF011234).withOpacity(0.6),
color: const Color(0xFF011234).withValues(alpha: 0.6),
fontSize: 13.69,
fontWeight: FontWeight.w500,
),

View File

@@ -27,7 +27,7 @@ class SupporterGroupCard extends StatelessWidget {
boxShadow: [
if (glow != null)
BoxShadow(
color: glow!.withOpacity(.2),
color: glow!.withValues(alpha: .2),
blurRadius: 60.0,
),
],