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,
),
],

View File

@@ -77,11 +77,11 @@ class PlusScreenState extends State<PlusScreen> {
decoration: BoxDecoration(
gradient: LinearGradient(
colors: [
const Color(0xffF4F9FF).withOpacity(0.30),
const Color(0xffF4F9FF).withOpacity(0.40),
const Color(0xffF4F9FF).withOpacity(0.50),
const Color(0xffF4F9FF).withOpacity(0.60),
const Color(0xffF4F9FF).withOpacity(0.70),
const Color(0xffF4F9FF).withValues(alpha: 0.30),
const Color(0xffF4F9FF).withValues(alpha: 0.40),
const Color(0xffF4F9FF).withValues(alpha: 0.50),
const Color(0xffF4F9FF).withValues(alpha: 0.60),
const Color(0xffF4F9FF).withValues(alpha: 0.70),
],
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
@@ -94,10 +94,10 @@ class PlusScreenState extends State<PlusScreen> {
decoration: BoxDecoration(
gradient: LinearGradient(
colors: [
const Color(0xffF4F9FF).withOpacity(0.0),
const Color(0xffF4F9FF).withOpacity(0.7),
const Color(0xffF4F9FF).withOpacity(0.8),
const Color(0xffF4F9FF).withOpacity(0.9),
const Color(0xffF4F9FF).withValues(alpha: 0.0),
const Color(0xffF4F9FF).withValues(alpha: 0.7),
const Color(0xffF4F9FF).withValues(alpha: 0.8),
const Color(0xffF4F9FF).withValues(alpha: 0.9),
const Color(0xffF4F9FF),
],
begin: Alignment.topCenter,
@@ -155,7 +155,7 @@ class PlusScreenState extends State<PlusScreen> {
style: TextStyle(
fontSize: 14.4,
color: const Color(0xFF0A1C41)
.withOpacity(0.5),
.withValues(alpha: 0.5),
fontWeight: FontWeight.w600,
),
),
@@ -182,7 +182,7 @@ class PlusScreenState extends State<PlusScreen> {
'2',
style: TextStyle(
color: const Color(0xFF011234)
.withOpacity(0.5),
.withValues(alpha: 0.5),
fontSize: 10.0,
fontWeight: FontWeight.w500,
),
@@ -194,7 +194,8 @@ class PlusScreenState extends State<PlusScreen> {
),
],
style: TextStyle(
color: const Color(0xFF011234).withOpacity(0.6),
color: const Color(0xFF011234)
.withValues(alpha: 0.6),
fontWeight: FontWeight.w500,
),
),
@@ -300,7 +301,7 @@ class PlusScreenState extends State<PlusScreen> {
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(16.0),
border: Border.all(
color: Colors.black.withOpacity(0.2),
color: Colors.black.withValues(alpha: 0.2),
),
),
child: SwitchListTile(
@@ -329,7 +330,7 @@ class PlusScreenState extends State<PlusScreen> {
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(16.0),
border: Border.all(
color: Colors.black.withOpacity(0.2),
color: Colors.black.withValues(alpha: 0.2),
),
),
child: ListTile(
@@ -427,7 +428,7 @@ class PlusScreenState extends State<PlusScreen> {
// decoration: BoxDecoration(
// borderRadius: BorderRadius.circular(16.0),
// border: Border.all(
// color: Colors.black.withOpacity(0.2),
// color: Colors.black.withValues(alpha: 0.2),
// ),
// ),
// child: CheckboxListTile(
@@ -462,7 +463,7 @@ class PlusScreenState extends State<PlusScreen> {
// 'A szolgáltatási csomag kiválasztásával (megérintés) elfogadod a reFilc előfizetésekkel kapcsolatos Általános Szerződési Feltételeit (elérhető az alábbi link-en: filc.one/pay-terms), valamint Adatkezelési Tájékoztatónkat (elérhető az alábbi link-en: filc.one/pay-privacy).',
// textAlign: TextAlign.justify,
// style:
// TextStyle(color: Colors.black.withOpacity(0.9)),
// TextStyle(color: Colors.black.withValues(alpha: 0.9)),
// ),
// ),
// faq section
@@ -474,7 +475,8 @@ class PlusScreenState extends State<PlusScreen> {
child: Text(
'faq'.i18n,
style: TextStyle(
color: const Color(0xFF011234).withOpacity(0.6),
color:
const Color(0xFF011234).withValues(alpha: 0.6),
fontWeight: FontWeight.w500,
),
),
@@ -518,7 +520,7 @@ class PlusScreenState extends State<PlusScreen> {
TextSpan(
style: TextStyle(
color: const Color(0xFF011234)
.withOpacity(0.6),
.withValues(alpha: 0.6),
fontWeight: FontWeight.w500,
),
children: [
@@ -532,7 +534,7 @@ class PlusScreenState extends State<PlusScreen> {
'3',
style: TextStyle(
color: const Color(0xFF011234)
.withOpacity(0.5),
.withValues(alpha: 0.5),
fontSize: 10.0,
fontWeight: FontWeight.w500,
),
@@ -587,8 +589,8 @@ class PlusScreenState extends State<PlusScreen> {
Text(
'o_1'.i18n,
style: TextStyle(
color:
const Color(0xFF011234).withOpacity(0.6),
color: const Color(0xFF011234)
.withValues(alpha: 0.6),
fontWeight: FontWeight.w500,
),
),
@@ -604,7 +606,8 @@ class PlusScreenState extends State<PlusScreen> {
child: Text(
'desc'.i18n,
style: TextStyle(
color: const Color(0xFF011234).withOpacity(0.6),
color:
const Color(0xFF011234).withValues(alpha: 0.6),
fontWeight: FontWeight.w500,
),
),

View File

@@ -59,7 +59,9 @@ class SupportersScreen extends StatelessWidget {
style: TextStyle(
fontWeight: FontWeight.w500,
fontSize: 20.0,
color: AppColors.of(context).text.withOpacity(.7)),
color: AppColors.of(context)
.text
.withValues(alpha: .7)),
),
),
),