TF-3586: Upgrade Flutter to 3.27.4

This commit is contained in:
DatDang
2025-03-25 15:53:01 +07:00
committed by Dat H. Pham
parent c7f5dc9e5e
commit 4fd0931c9e
109 changed files with 361 additions and 372 deletions
@@ -2124,7 +2124,7 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
);
await Get.generalDialog(
barrierColor: Colors.black.withOpacity(0.8),
barrierColor: Colors.black.withValues(alpha: 0.8),
pageBuilder: (_, __, ___) {
return PointerInterceptor(
child: PDFViewer(
@@ -150,7 +150,7 @@ extension CalendarEventExtension on CalendarEvent {
if (participants?.isNotEmpty == true) {
final listMatchedAttendee = participants
!.where((attendee) => attendee.mailto != null && listEmailAddressSender.contains(attendee.mailto!.mailAddress.value))
.whereNotNull();
.nonNulls;
log('CalendarEventExtension::findAttendeeHasUpdatedStatus:listMatchedAttendee: $listMatchedAttendee');
if (listMatchedAttendee.isNotEmpty) {
return listMatchedAttendee.first;
@@ -363,12 +363,12 @@ extension CalendarEventExtension on CalendarEvent {
final videoConferences = List<String>.empty(growable: true);
final openPaasVideoConferences = extensionFields?.mapFields['X-OPENPAAS-VIDEOCONFERENCE']
?.whereNotNull()
?.nonNulls
.where((link) => link.isNotEmpty)
.toList() ?? [];
log('CalendarEventExtension::openPaasVideoConferences: $openPaasVideoConferences');
final googleVideoConferences = extensionFields!.mapFields['X-GOOGLE-CONFERENCE']
?.whereNotNull()
?.nonNulls
.where((link) => link.isNotEmpty)
.toList() ?? [];
log('CalendarEventExtension::googleVideoConferences: $googleVideoConferences');
@@ -1,5 +1,4 @@
import 'package:collection/collection.dart';
import 'package:jmap_dart_client/jmap/mail/calendar/properties/attendee/calendar_attendee.dart';
import 'package:jmap_dart_client/jmap/mail/calendar/properties/calendar_organizer.dart';
@@ -7,7 +6,7 @@ extension ListAttendeeExtension on List<CalendarAttendee> {
String get mailtoAsString {
return map((attendee) => attendee.mailto?.mailAddress.value)
.whereNotNull()
.nonNulls
.join(', ');
}
@@ -16,7 +15,7 @@ extension ListAttendeeExtension on List<CalendarAttendee> {
return this;
}
return where((attendee) => attendee.mailto?.mailAddress != organizer.mailto)
.whereNotNull()
.nonNulls
.toList();
}
}
@@ -1,4 +1,3 @@
import 'package:collection/collection.dart';
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:core/presentation/utils/responsive_utils.dart';
@@ -53,7 +52,7 @@ class EmailUtils {
final allMatchesMailtoLinks = regExpMailtoLinks.allMatches(listUnsubscribe);
final listMailtoLinks = allMatchesMailtoLinks
.map((match) => match.group(0))
.whereNotNull()
.nonNulls
.toList();
log('EmailUtils::parsingUnsubscribe:listMailtoLinks: $listMailtoLinks');
@@ -61,7 +60,7 @@ class EmailUtils {
final allMatchesHttpLinks = regExpHttpLinks.allMatches(listUnsubscribe);
final listHttpLinks = allMatchesHttpLinks
.map((match) => match.group(0))
.whereNotNull()
.nonNulls
.toList();
log('EmailUtils::parsingUnsubscribe:listHttpLinks: $listHttpLinks');
@@ -33,13 +33,13 @@ class EmailAddressBottomSheetBuilder extends StatelessWidget {
),
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.15),
color: Colors.black.withValues(alpha: 0.15),
blurRadius: 8,
spreadRadius: 3,
offset: const Offset(0, 4),
),
BoxShadow(
color: Colors.black.withOpacity(0.3),
color: Colors.black.withValues(alpha: 0.3),
blurRadius: 3,
spreadRadius: 0,
offset: const Offset(0, 1),
@@ -40,13 +40,13 @@ class EmailAddressDialogBuilder extends StatelessWidget {
borderRadius: const BorderRadius.all(Radius.circular(16)),
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.15),
color: Colors.black.withValues(alpha: 0.15),
blurRadius: 8,
spreadRadius: 3,
offset: const Offset(0, 4),
),
BoxShadow(
color: Colors.black.withOpacity(0.3),
color: Colors.black.withValues(alpha: 0.3),
blurRadius: 3,
spreadRadius: 0,
offset: const Offset(0, 1),
@@ -20,7 +20,7 @@ class TopBarAttachmentViewer extends StatelessWidget {
return Container(
padding: const EdgeInsets.symmetric(horizontal: 16),
height: 52,
color: Colors.black.withOpacity(0.3),
color: Colors.black.withValues(alpha: 0.3),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
@@ -32,8 +32,8 @@ class TopBarAttachmentViewer extends StatelessWidget {
color: Colors.white,
size: 24,
),
focusColor: Colors.black.withOpacity(0.3),
hoverColor: Colors.black.withOpacity(0.3),
focusColor: Colors.black.withValues(alpha: 0.3),
hoverColor: Colors.black.withValues(alpha: 0.3),
tooltip: AppLocalizations.of(context).close,
),
const SizedBox(width: 8),
@@ -59,8 +59,8 @@ class TopBarAttachmentViewer extends StatelessWidget {
color: Colors.white,
size: 24,
),
focusColor: Colors.black.withOpacity(0.3),
hoverColor: Colors.black.withOpacity(0.3),
focusColor: Colors.black.withValues(alpha: 0.3),
hoverColor: Colors.black.withValues(alpha: 0.3),
tooltip: AppLocalizations.of(context).print,
),
),
@@ -75,8 +75,8 @@ class TopBarAttachmentViewer extends StatelessWidget {
color: Colors.white,
size: 24,
),
focusColor: Colors.black.withOpacity(0.3),
hoverColor: Colors.black.withOpacity(0.3),
focusColor: Colors.black.withValues(alpha: 0.3),
hoverColor: Colors.black.withValues(alpha: 0.3),
tooltip: AppLocalizations.of(context).download,
),
)