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
@@ -1,7 +1,6 @@
import 'dart:async';
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/keyboard_utils.dart';
@@ -207,7 +206,7 @@ class _AutocompleteContactTextFieldWithTagsState extends State<AutocompleteConta
}
return listEmailAddress
.map((emailAddress) => emailAddress.email)
.whereNotNull()
.nonNulls
.contains(inputEmail);
}
@@ -70,7 +70,9 @@ class LanguageAndRegionController extends BaseController {
if (accountId == null ||
session == null ||
!capabilityServerSettings.isSupported(session, accountId) ||
session.isLanguageReadOnly(accountId)) return;
session.isLanguageReadOnly(accountId)) {
return;
}
consumeState(saveLanguageToServerSettingsInteractor.execute(
accountId,
@@ -38,7 +38,7 @@ class LanguageAndRegionView extends GetWidget<LanguageAndRegionController> {
SettingHeaderWidget(
menuItem: AccountMenuItem.languageAndRegion,
textStyle: ThemeUtils.textStyleInter600().copyWith(
color: Colors.black.withOpacity(0.9),
color: Colors.black.withValues(alpha: 0.9),
),
padding: EdgeInsets.zero,
)
@@ -75,7 +75,7 @@ class _ChangeLanguageButtonWidgetState extends State<ChangeLanguageButtonWidget>
fontSize: 14,
height: 21.01 / 14,
letterSpacing: -0.15,
color: AppColor.gray424244.withOpacity(0.64),
color: AppColor.gray424244.withValues(alpha: 0.64),
),
);
}
@@ -120,7 +120,7 @@ class _ChangeLanguageButtonWidgetState extends State<ChangeLanguageButtonWidget>
.getLanguageNameByCurrentLocale(AppLocalizations.of(context)),
dropDownIcon: _imagePaths.icDropDown,
backgroundColor: isVisible
? AppColor.lightGrayEBEDF0.withOpacity(0.6)
? AppColor.lightGrayEBEDF0.withValues(alpha: 0.6)
: null,
onTap: () => _toggleLanguageMenuOverlay(true),
)
@@ -34,12 +34,12 @@ class LanguageRegionOverlay extends StatelessWidget {
borderRadius: const BorderRadius.all(Radius.circular(16)),
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.3),
color: Colors.black.withValues(alpha: 0.3),
blurRadius: 2,
offset: const Offset(0, 1),
),
BoxShadow(
color: Colors.black.withOpacity(0.15),
color: Colors.black.withValues(alpha: 0.15),
blurRadius: 6,
spreadRadius: 2,
offset: const Offset(0, 2),
@@ -30,7 +30,7 @@ class LanguageItemWidget extends StatelessWidget {
child: InkWell(
onTap: () => onSelectLanguageAction.call(localeCurrent),
borderRadius: const BorderRadius.all(Radius.circular(8)),
hoverColor: AppColor.lightGrayEBEDF0.withOpacity(0.6),
hoverColor: AppColor.lightGrayEBEDF0.withValues(alpha: 0.6),
child: Container(
padding: const EdgeInsets.symmetric(horizontal: 17),
height: 51,
@@ -41,7 +41,7 @@ class LanguageItemWidget extends StatelessWidget {
letterSpacing: -0.15,
fontSize: 16,
height: 21.01 / 16,
color: AppColor.gray424244.withOpacity(0.9),
color: AppColor.gray424244.withValues(alpha: 0.9),
),
maxLines: 1,
overflow: TextOverflow.ellipsis,
@@ -35,7 +35,7 @@ enum EmailRuleActionType {
if (this == EmailRuleActionType.delete) {
return AppColor.redFF3347;
} else {
return AppColor.gray424244.withOpacity(0.72);
return AppColor.gray424244.withValues(alpha: 0.72);
}
}
@@ -43,7 +43,7 @@ enum EmailRuleActionType {
if (this == EmailRuleActionType.delete) {
return AppColor.redFF3347;
} else {
return AppColor.gray424244.withOpacity(0.79);
return AppColor.gray424244.withValues(alpha: 0.79);
}
}
}
@@ -52,7 +52,7 @@ class SettingOptionItem extends StatelessWidget {
fontSize: 14,
height: 21.01 / 14,
letterSpacing: -0.15,
color: AppColor.gray424244.withOpacity(0.64),
color: AppColor.gray424244.withValues(alpha: 0.64),
),
),
),
@@ -408,7 +408,9 @@ class IdentitiesController extends ReloadableController implements BeforeReconne
|| accountId == null
|| identityId == null
|| identityActionType == null
|| publicAssetsInIdentityArguments == null) return;
|| publicAssetsInIdentityArguments == null) {
return;
}
final cleanUpPublicAssetsInteractor = getBinding<CleanUpPublicAssetsInteractor>(
tag: BindingTag.cleanUpPublicAssetsInteractorBindingsTag);
@@ -461,7 +463,9 @@ class IdentitiesController extends ReloadableController implements BeforeReconne
final accountId = accountDashBoardController.accountId;
if (session == null
|| accountId.value == null
|| !PlatformInfo.isWeb) return;
|| !PlatformInfo.isWeb) {
return;
}
final getIdentityCacheOnWebInteractor = getBinding<GetIdentityCacheOnWebInteractor>(
tag: BindingTag.restoreIdentityCacheInteractorBindingsTag);
@@ -21,7 +21,7 @@ class SettingExplanationWidget extends StatelessWidget {
Widget child = Text(
menuItem.getExplanation(AppLocalizations.of(context)),
style: ThemeUtils.textStyleM3BodyMedium1
.copyWith(color: AppColor.gray424244.withOpacity(0.64)),
.copyWith(color: AppColor.gray424244.withValues(alpha: 0.64)),
);
if (isCenter) {
@@ -36,7 +36,7 @@ class SettingHeaderWidget extends StatelessWidget {
fontSize: 16,
height: 21.01 / 16,
letterSpacing: -0.15,
color: AppColor.gray424244.withOpacity(0.64),
color: AppColor.gray424244.withValues(alpha: 0.64),
),
),
),