fix: issues

This commit is contained in:
Prateek Sunal
2025-07-10 18:52:46 +05:30
parent 8f1ee2ef15
commit c925ed2117
5 changed files with 11 additions and 11 deletions

View File

@@ -1,15 +1,12 @@
import 'dart:async';
import 'dart:typed_data' show Uint8List;
import "package:computer/computer.dart";
import "package:logging/logging.dart";
import "package:photos/models/ml/face/box.dart";
import "package:photos/services/isolate_functions.dart";
import "package:photos/services/isolate_service.dart";
import "package:photos/utils/image_ml_util.dart";
final Computer _computer = Computer.shared();
class FaceThumbnailGenerator extends SuperIsolate {
@override
Logger get logger => _logger;

View File

@@ -120,8 +120,8 @@ class AlbumRowItemWidget extends StatelessWidget {
child: isSelected
? ColorFiltered(
colorFilter: ColorFilter.mode(
Colors.black.withOpacity(
0.4,
Colors.black.withValues(
alpha: 0.4,
),
BlendMode.darken,
),

View File

@@ -335,7 +335,7 @@ class _FullScreenMemoryState extends State<FullScreenMemory> {
currentIndex: value,
selectedColor: Colors.white,
unselectedColor:
Colors.white.withOpacity(0.4),
Colors.white.withValues(alpha: 0.4),
duration: duration,
animationController: (controller) {
_progressAnimationController = controller;

View File

@@ -115,7 +115,7 @@ class _MemoryCoverWidgetState extends State<MemoryCoverWidget> {
decoration: BoxDecoration(
gradient: LinearGradient(
colors: [
Colors.black.withOpacity(0.5),
Colors.black.withValues(alpha: 0.5),
Colors.transparent,
],
stops: const [0, 1],
@@ -171,7 +171,7 @@ class _MemoryCoverWidgetState extends State<MemoryCoverWidget> {
decoration: BoxDecoration(
gradient: LinearGradient(
colors: [
Colors.black.withOpacity(0.5),
Colors.black.withValues(alpha: 0.5),
Colors.transparent,
],
stops: const [0, 1],

View File

@@ -212,8 +212,8 @@ class SelectablePersonSearchExample extends StatelessWidget {
),
child: ColorFiltered(
colorFilter: ColorFilter.mode(
Colors.black.withOpacity(
isSelected ? 0.4 : 0,
Colors.black.withValues(
alpha: isSelected ? 0.4 : 0,
),
BlendMode.darken,
),
@@ -568,7 +568,10 @@ class _PeopleSectionAllWidgetState extends State<PeopleSectionAllWidget> {
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8),
side: BorderSide(
color: Theme.of(context).colorScheme.outline.withOpacity(0.3),
color: Theme.of(context)
.colorScheme
.outline
.withValues(alpha: 0.3),
width: 1,
),
),