TF-3586: Upgrade Flutter to 3.27.4
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import 'package:collection/collection.dart';
|
||||
import 'package:core/core.dart';
|
||||
import 'package:dartz/dartz.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/error/set_error.dart';
|
||||
@@ -57,7 +56,7 @@ mixin HandleSetErrorMixin {
|
||||
}
|
||||
|
||||
Map<Id, SetError> handleSetResponse(List<SetResponse?> listSetResponse) {
|
||||
final listSetResponseNotNull = listSetResponse.whereNotNull().toList();
|
||||
final listSetResponseNotNull = listSetResponse.nonNulls.toList();
|
||||
if (listSetResponseNotNull.isEmpty) {
|
||||
return <Id, SetError>{};
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ mixin PopupContextMenuActionMixin {
|
||||
),
|
||||
),
|
||||
backgroundColor: Colors.white,
|
||||
barrierColor: Colors.black.withOpacity(0.2),
|
||||
barrierColor: Colors.black.withValues(alpha: 0.2),
|
||||
builder: (_) {
|
||||
return PointerInterceptor(
|
||||
child: Container(
|
||||
|
||||
@@ -117,7 +117,7 @@ class CleanMessagesBanner extends StatelessWidget {
|
||||
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
color: AppColor.m3LayerDarkOutline.withOpacity(0.08),
|
||||
color: AppColor.m3LayerDarkOutline.withValues(alpha: 0.08),
|
||||
borderRadius: const BorderRadius.all(Radius.circular(8)),
|
||||
),
|
||||
padding: displayPositiveActionIsNewLine
|
||||
|
||||
@@ -14,7 +14,7 @@ abstract class ContextMenuItemAction<T> with EquatableMixin {
|
||||
|
||||
String get actionName;
|
||||
|
||||
Color get actionNameColor => AppColor.gray424244.withOpacity(0.9);
|
||||
Color get actionNameColor => AppColor.gray424244.withValues(alpha: 0.9);
|
||||
|
||||
void onClick(OnContextMenuActionClick callback) => callback(this);
|
||||
}
|
||||
@@ -22,7 +22,7 @@ abstract class ContextMenuItemAction<T> with EquatableMixin {
|
||||
mixin OptionalIcon {
|
||||
String get actionIcon;
|
||||
|
||||
Color get actionIconColor => AppColor.gray424244.withOpacity(0.72);
|
||||
Color get actionIconColor => AppColor.gray424244.withValues(alpha: 0.72);
|
||||
}
|
||||
|
||||
mixin OptionalSelectedIcon<T> {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import 'dart:async';
|
||||
import 'dart:math';
|
||||
|
||||
import 'package:collection/collection.dart';
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/resources/image_paths.dart';
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
@@ -299,7 +298,7 @@ class _DefaultAutocompleteInputFieldWidgetState
|
||||
}
|
||||
return _currentListEmailAddress
|
||||
.map((emailAddress) => emailAddress.email)
|
||||
.whereNotNull()
|
||||
.nonNulls
|
||||
.contains(inputEmail);
|
||||
}
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ class DropDownButtonWidget<T> extends StatelessWidget {
|
||||
_getTextItemDropdown(context, item: itemSelected),
|
||||
style: ThemeUtils.defaultTextStyleInterFont.copyWith(fontSize: 16,
|
||||
fontWeight: FontWeight.normal,
|
||||
color: Colors.black.withOpacity(opacity)),
|
||||
color: Colors.black.withValues(alpha: opacity)),
|
||||
maxLines: 1,
|
||||
softWrap: CommonTextStyle.defaultSoftWrap,
|
||||
overflow: CommonTextStyle.defaultTextOverFlow,
|
||||
@@ -124,7 +124,7 @@ class DropDownButtonWidget<T> extends StatelessWidget {
|
||||
_getTextItemDropdown(context, item: itemSelected),
|
||||
style: ThemeUtils.defaultTextStyleInterFont.copyWith(fontSize: 16,
|
||||
fontWeight: FontWeight.normal,
|
||||
color: itemSelected != null ? Colors.black.withOpacity(opacity) : AppColor.textFieldHintColor),
|
||||
color: itemSelected != null ? Colors.black.withValues(alpha: opacity) : AppColor.textFieldHintColor),
|
||||
maxLines: 1,
|
||||
softWrap: CommonTextStyle.defaultSoftWrap,
|
||||
overflow: CommonTextStyle.defaultTextOverFlow,
|
||||
|
||||
@@ -41,7 +41,7 @@ class EmailAddressWithCopyWidget extends StatelessWidget {
|
||||
backgroundColor: Colors.transparent,
|
||||
iconSize: 20,
|
||||
iconColor: copyIconColor ??
|
||||
AppColor.textSecondary.withOpacity(0.48),
|
||||
AppColor.textSecondary.withValues(alpha: 0.48),
|
||||
padding: const EdgeInsets.all(5),
|
||||
margin: copyIconMargin,
|
||||
onTapActionCallback: onCopyButtonAction,
|
||||
|
||||
@@ -147,7 +147,7 @@ class ReportMessageBanner extends StatelessWidget {
|
||||
|
||||
Color get _backgroundColor => isDesktop
|
||||
? AppColor.lightGrayEAEDF2
|
||||
: AppColor.m3LayerDarkOutline.withOpacity(0.08);
|
||||
: AppColor.m3LayerDarkOutline.withValues(alpha: 0.08);
|
||||
|
||||
double get _bannerHeight => isDesktop ? 44 : 52;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user