Resolve all lints and deprecation warnings
This commit is contained in:
@@ -136,8 +136,9 @@ class _PadTrackerCardState extends ConsumerState<PadTrackerCard> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final user = ref.watch(userProfileProvider);
|
||||
if (user == null || !user.isPadTrackingEnabled)
|
||||
if (user == null || !user.isPadTrackingEnabled) {
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
|
||||
return GestureDetector(
|
||||
onTap: () {
|
||||
@@ -151,10 +152,10 @@ class _PadTrackerCardState extends ConsumerState<PadTrackerCard> {
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white,
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
border: Border.all(color: _statusColor.withOpacity(0.3)),
|
||||
border: Border.all(color: _statusColor.withValues(alpha: 0.3)),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: _statusColor.withOpacity(0.1),
|
||||
color: _statusColor.withValues(alpha: 0.1),
|
||||
blurRadius: 10,
|
||||
offset: const Offset(0, 4),
|
||||
),
|
||||
@@ -167,7 +168,7 @@ class _PadTrackerCardState extends ConsumerState<PadTrackerCard> {
|
||||
Container(
|
||||
padding: const EdgeInsets.all(10),
|
||||
decoration: BoxDecoration(
|
||||
color: _statusColor.withOpacity(0.1),
|
||||
color: _statusColor.withValues(alpha: 0.1),
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
child:
|
||||
@@ -224,7 +225,7 @@ class _PadTrackerCardState extends ConsumerState<PadTrackerCard> {
|
||||
borderRadius: BorderRadius.circular(4),
|
||||
child: LinearProgressIndicator(
|
||||
value: _progress,
|
||||
backgroundColor: _statusColor.withOpacity(0.1),
|
||||
backgroundColor: _statusColor.withValues(alpha: 0.1),
|
||||
valueColor: AlwaysStoppedAnimation<Color>(_statusColor),
|
||||
minHeight: 6,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user