fixed deprecated warnings
This commit is contained in:
@@ -114,7 +114,7 @@ class LiveCardStateA extends State<LiveCard> {
|
||||
// context,
|
||||
// useRootNavigator: true,
|
||||
// builder: (context) => SlidingSheetDialog(
|
||||
// color: Colors.black.withOpacity(0.99),
|
||||
// color: Colors.black.withValues(alpha: 0.99),
|
||||
// duration: const Duration(milliseconds: 400),
|
||||
// scrollSpec: const ScrollSpec.bouncingScroll(),
|
||||
// snapSpec: const SnapSpec(
|
||||
@@ -162,7 +162,7 @@ class LiveCardStateA extends State<LiveCard> {
|
||||
// color: Theme.of(context)
|
||||
// .colorScheme
|
||||
// .secondary
|
||||
// .withOpacity(.85),
|
||||
// .withValues(alpha: .85),
|
||||
// fontStyle: liveCard.nextLesson!.subject.isRenamed &&
|
||||
// settingsProvider.renamedSubjectsItalics
|
||||
// ? FontStyle.italic
|
||||
@@ -176,7 +176,7 @@ class LiveCardStateA extends State<LiveCard> {
|
||||
// color: Theme.of(context)
|
||||
// .colorScheme
|
||||
// .secondary
|
||||
// .withOpacity(.85),
|
||||
// .withValues(alpha: .85),
|
||||
// ),
|
||||
// ),
|
||||
// TextSpan(text: "first_lesson_3".i18n),
|
||||
@@ -188,7 +188,7 @@ class LiveCardStateA extends State<LiveCard> {
|
||||
// color: Theme.of(context)
|
||||
// .colorScheme
|
||||
// .secondary
|
||||
// .withOpacity(.85),
|
||||
// .withValues(alpha: .85),
|
||||
// ),
|
||||
// ),
|
||||
// TextSpan(text: "first_lesson_4".i18n),
|
||||
@@ -281,7 +281,7 @@ class LiveCardStateA extends State<LiveCard> {
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary
|
||||
.withOpacity(.15),
|
||||
.withValues(alpha: .15),
|
||||
borderRadius: BorderRadius.circular(10.0),
|
||||
),
|
||||
child: Text(
|
||||
@@ -294,7 +294,7 @@ class LiveCardStateA extends State<LiveCard> {
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary
|
||||
.withOpacity(.9),
|
||||
.withValues(alpha: .9),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -469,7 +469,7 @@ class LiveCardStateA extends State<LiveCard> {
|
||||
fontWeight: FontWeight.w500,
|
||||
color: AppColors.of(context)
|
||||
.text
|
||||
.withOpacity(.75),
|
||||
.withValues(alpha: .75),
|
||||
height: 1.1,
|
||||
),
|
||||
),
|
||||
@@ -547,7 +547,7 @@ class LiveCardStateA extends State<LiveCard> {
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.tertiary
|
||||
.withOpacity(.15),
|
||||
.withValues(alpha: .15),
|
||||
borderRadius:
|
||||
BorderRadius.circular(10.0),
|
||||
),
|
||||
@@ -561,7 +561,7 @@ class LiveCardStateA extends State<LiveCard> {
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary
|
||||
.withOpacity(.9),
|
||||
.withValues(alpha: .9),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -730,10 +730,11 @@ class LiveCardStateA extends State<LiveCard> {
|
||||
fontSize: 16.5,
|
||||
color: AppColors.of(context)
|
||||
.text
|
||||
.withOpacity(!liveCard
|
||||
.nextLesson!.isEmpty
|
||||
? 1.0
|
||||
: 0.5),
|
||||
.withValues(
|
||||
alpha: !liveCard
|
||||
.nextLesson!.isEmpty
|
||||
? 1.0
|
||||
: 0.5),
|
||||
fontStyle: liveCard.nextLesson!
|
||||
.subject.isRenamed &&
|
||||
settingsProvider
|
||||
@@ -752,7 +753,7 @@ class LiveCardStateA extends State<LiveCard> {
|
||||
height: 1.0,
|
||||
color: AppColors.of(context)
|
||||
.text
|
||||
.withOpacity(.75),
|
||||
.withValues(alpha: .75),
|
||||
),
|
||||
maxLines: !(nextSubject == null &&
|
||||
progressCurrent == null &&
|
||||
@@ -830,7 +831,7 @@ class LiveCardStateA extends State<LiveCard> {
|
||||
fontWeight: FontWeight.w500,
|
||||
color: AppColors.of(context)
|
||||
.text
|
||||
.withOpacity(.9),
|
||||
.withValues(alpha: .9),
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -899,7 +900,7 @@ class LiveCardStateA extends State<LiveCard> {
|
||||
fontWeight: FontWeight.w500,
|
||||
color: AppColors.of(context)
|
||||
.text
|
||||
.withOpacity(.75),
|
||||
.withValues(alpha: .75),
|
||||
height: 1.1,
|
||||
),
|
||||
),
|
||||
@@ -977,7 +978,7 @@ class LiveCardStateA extends State<LiveCard> {
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.tertiary
|
||||
.withOpacity(.15),
|
||||
.withValues(alpha: .15),
|
||||
borderRadius:
|
||||
BorderRadius.circular(10.0),
|
||||
),
|
||||
@@ -991,7 +992,7 @@ class LiveCardStateA extends State<LiveCard> {
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary
|
||||
.withOpacity(.9),
|
||||
.withValues(alpha: .9),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -132,7 +132,7 @@ class _LiveCardWidgetState extends State<LiveCardWidget> {
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary
|
||||
.withOpacity(0.5),
|
||||
.withValues(alpha: 0.5),
|
||||
borderRadius: const BorderRadius.all(
|
||||
Radius.circular(10),
|
||||
),
|
||||
@@ -220,8 +220,9 @@ class _LiveCardWidgetState extends State<LiveCardWidget> {
|
||||
context)
|
||||
.colorScheme
|
||||
.secondary
|
||||
.withOpacity(
|
||||
.3),
|
||||
.withValues(
|
||||
alpha:
|
||||
.3),
|
||||
borderRadius:
|
||||
BorderRadius
|
||||
.circular(
|
||||
@@ -267,7 +268,7 @@ class _LiveCardWidgetState extends State<LiveCardWidget> {
|
||||
size: 26.0,
|
||||
color: AppColors.of(context)
|
||||
.text
|
||||
.withOpacity(.75),
|
||||
.withValues(alpha: .75),
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -283,7 +284,7 @@ class _LiveCardWidgetState extends State<LiveCardWidget> {
|
||||
height: 1.0,
|
||||
color: AppColors.of(context)
|
||||
.text
|
||||
.withOpacity(.75),
|
||||
.withValues(alpha: .75),
|
||||
),
|
||||
maxLines:
|
||||
!(widget.nextSubject == null &&
|
||||
@@ -341,7 +342,8 @@ class _LiveCardWidgetState extends State<LiveCardWidget> {
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary
|
||||
.withOpacity(.25),
|
||||
.withValues(
|
||||
alpha: .25),
|
||||
borderRadius:
|
||||
BorderRadius.circular(
|
||||
4.0),
|
||||
@@ -356,7 +358,8 @@ class _LiveCardWidgetState extends State<LiveCardWidget> {
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary
|
||||
.withOpacity(.9),
|
||||
.withValues(
|
||||
alpha: .9),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -366,7 +369,7 @@ class _LiveCardWidgetState extends State<LiveCardWidget> {
|
||||
style: TextStyle(
|
||||
color: AppColors.of(context)
|
||||
.text
|
||||
.withOpacity(.8),
|
||||
.withValues(alpha: .8),
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
maxLines: 1,
|
||||
@@ -393,7 +396,7 @@ class _LiveCardWidgetState extends State<LiveCardWidget> {
|
||||
fontWeight: FontWeight.w500,
|
||||
color: AppColors.of(context)
|
||||
.text
|
||||
.withOpacity(.75),
|
||||
.withValues(alpha: .75),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -24,7 +24,8 @@ class SegmentedCountdownState extends State<SegmentedCountdown> {
|
||||
children: [
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).colorScheme.secondary.withOpacity(0.05),
|
||||
color:
|
||||
Theme.of(context).colorScheme.secondary.withValues(alpha: 0.05),
|
||||
borderRadius: BorderRadius.circular(8.0),
|
||||
),
|
||||
padding: const EdgeInsets.symmetric(vertical: 2.0),
|
||||
@@ -46,7 +47,7 @@ class SegmentedCountdownState extends State<SegmentedCountdown> {
|
||||
style: TextStyle(
|
||||
fontSize: 16.0,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: AppColors.of(context).text.withOpacity(0.6),
|
||||
color: AppColors.of(context).text.withValues(alpha: 0.6),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
@@ -54,7 +55,8 @@ class SegmentedCountdownState extends State<SegmentedCountdown> {
|
||||
),
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).colorScheme.secondary.withOpacity(0.05),
|
||||
color:
|
||||
Theme.of(context).colorScheme.secondary.withValues(alpha: 0.05),
|
||||
borderRadius: BorderRadius.circular(8.0),
|
||||
),
|
||||
padding: const EdgeInsets.symmetric(vertical: 2.0),
|
||||
@@ -71,7 +73,10 @@ class SegmentedCountdownState extends State<SegmentedCountdown> {
|
||||
if (diffMins.length == 2)
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).colorScheme.secondary.withOpacity(0.05),
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary
|
||||
.withValues(alpha: 0.05),
|
||||
borderRadius: BorderRadius.circular(8.0),
|
||||
),
|
||||
padding: const EdgeInsets.symmetric(vertical: 2.0),
|
||||
@@ -94,7 +99,7 @@ class SegmentedCountdownState extends State<SegmentedCountdown> {
|
||||
style: TextStyle(
|
||||
fontSize: 16.0,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: AppColors.of(context).text.withOpacity(0.6),
|
||||
color: AppColors.of(context).text.withValues(alpha: 0.6),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
@@ -102,7 +107,8 @@ class SegmentedCountdownState extends State<SegmentedCountdown> {
|
||||
),
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).colorScheme.secondary.withOpacity(0.05),
|
||||
color:
|
||||
Theme.of(context).colorScheme.secondary.withValues(alpha: 0.05),
|
||||
borderRadius: BorderRadius.circular(8.0),
|
||||
),
|
||||
padding: const EdgeInsets.symmetric(vertical: 2.0),
|
||||
@@ -119,7 +125,10 @@ class SegmentedCountdownState extends State<SegmentedCountdown> {
|
||||
if (diffSecs.length == 2)
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).colorScheme.secondary.withOpacity(0.05),
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary
|
||||
.withValues(alpha: 0.05),
|
||||
borderRadius: BorderRadius.circular(8.0),
|
||||
),
|
||||
padding: const EdgeInsets.symmetric(vertical: 2.0),
|
||||
@@ -142,7 +151,7 @@ class SegmentedCountdownState extends State<SegmentedCountdown> {
|
||||
style: TextStyle(
|
||||
fontSize: 16.0,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: AppColors.of(context).text.withOpacity(0.6),
|
||||
color: AppColors.of(context).text.withValues(alpha: 0.6),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user