TF-3586: Upgrade Flutter to 3.27.4
This commit is contained in:
@@ -1923,7 +1923,9 @@ class ComposerController extends BaseController
|
||||
|
||||
if (PlatformInfo.isWeb &&
|
||||
!_isEmailBodyLoaded &&
|
||||
!screenDisplayMode.value.isNotContentVisible()) return true;
|
||||
!screenDisplayMode.value.isNotContentVisible()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (PlatformInfo.isMobile && !_isEmailBodyLoaded) return true;
|
||||
|
||||
|
||||
@@ -97,8 +97,8 @@ mixin RichTextButtonMixin {
|
||||
icon: SvgPicture.asset(
|
||||
path,
|
||||
colorFilter: isSelected == true
|
||||
? Colors.black.withOpacity(opacity).asFilter()
|
||||
: AppColor.colorDefaultRichTextButton.withOpacity(opacity).asFilter(),
|
||||
? Colors.black.withValues(alpha: opacity).asFilter()
|
||||
: AppColor.colorDefaultRichTextButton.withValues(alpha: opacity).asFilter(),
|
||||
fit: BoxFit.fill),
|
||||
iconPadding: const EdgeInsets.all(4),
|
||||
colorFocus: Colors.white,
|
||||
@@ -123,11 +123,11 @@ mixin RichTextButtonMixin {
|
||||
message: tooltip,
|
||||
child: SvgPicture.asset(
|
||||
path,
|
||||
colorFilter: newColor?.withOpacity(opacity).asFilter(),
|
||||
colorFilter: newColor?.withValues(alpha: opacity).asFilter(),
|
||||
fit: BoxFit.fill))
|
||||
: SvgPicture.asset(
|
||||
path,
|
||||
colorFilter: newColor?.withOpacity(opacity).asFilter(),
|
||||
colorFilter: newColor?.withValues(alpha: opacity).asFilter(),
|
||||
fit: BoxFit.fill);
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ mixin RichTextButtonMixin {
|
||||
|
||||
return SvgPicture.asset(
|
||||
path,
|
||||
colorFilter: newColor?.withOpacity(opacity).asFilter(),
|
||||
colorFilter: newColor?.withValues(alpha: opacity).asFilter(),
|
||||
fit: BoxFit.fill);
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ mixin RichTextButtonMixin {
|
||||
? AppColor.colorDefaultRichTextButton
|
||||
: colorSelected;
|
||||
return Icon(iconData,
|
||||
color: (newColor ?? AppColor.colorDefaultRichTextButton).withOpacity(opacity),
|
||||
color: (newColor ?? AppColor.colorDefaultRichTextButton).withValues(alpha: opacity),
|
||||
size: 20);
|
||||
}
|
||||
|
||||
@@ -171,7 +171,7 @@ mixin RichTextButtonMixin {
|
||||
return Tooltip(
|
||||
message: tooltip,
|
||||
child: Icon(iconData,
|
||||
color: (newColor ?? AppColor.colorDefaultRichTextButton).withOpacity(opacity),
|
||||
color: (newColor ?? AppColor.colorDefaultRichTextButton).withValues(alpha: opacity),
|
||||
size: 20),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -101,8 +101,6 @@ enum RichTextStyleType {
|
||||
return AppLocalizations.of(context).paragraph;
|
||||
case orderList:
|
||||
return AppLocalizations.of(context).orderList;
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,7 +10,7 @@ class DropZoneWidgetStyle {
|
||||
|
||||
static const List<double> dashSize = [6, 3];
|
||||
|
||||
static Color backgroundColor = AppColor.colorDropZoneBackground.withOpacity(0.7);
|
||||
static Color backgroundColor = AppColor.colorDropZoneBackground.withValues(alpha: 0.7);
|
||||
static const Color borderColor = AppColor.colorDropZoneBorder;
|
||||
|
||||
static const EdgeInsetsGeometry padding = EdgeInsets.all(20);
|
||||
|
||||
@@ -39,13 +39,13 @@ class MobileEditRecipientsView extends StatelessWidget {
|
||||
color: Colors.white,
|
||||
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,
|
||||
offset: const Offset(0, 1),
|
||||
),
|
||||
@@ -123,7 +123,7 @@ class MobileEditRecipientsView extends StatelessWidget {
|
||||
decoration: BoxDecoration(
|
||||
border: Border(
|
||||
top: BorderSide(
|
||||
color: AppColor.gray424244.withOpacity(0.12),
|
||||
color: AppColor.gray424244.withValues(alpha: 0.12),
|
||||
width: 1,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -42,13 +42,13 @@ class DesktopEditRecipientsView extends StatelessWidget {
|
||||
color: Colors.white,
|
||||
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,
|
||||
offset: const Offset(0, 1),
|
||||
),
|
||||
|
||||
@@ -48,7 +48,7 @@ class EmailAddressActionWidget extends StatelessWidget {
|
||||
fontSize: 14,
|
||||
height: 21.01 / 14,
|
||||
letterSpacing: -0.15,
|
||||
color: AppColor.gray424244.withOpacity(0.9),
|
||||
color: AppColor.gray424244.withValues(alpha: 0.9),
|
||||
),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
|
||||
@@ -191,7 +191,7 @@ class _SavingMessageDialogViewState extends State<SavingMessageDialogView> {
|
||||
const SizedBox(width: 8),
|
||||
Expanded(
|
||||
child: LinearProgressIndicator(
|
||||
color: Colors.white.withOpacity(0.6),
|
||||
color: Colors.white.withValues(alpha: 0.6),
|
||||
backgroundColor: AppColor.primaryColor,
|
||||
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
||||
),
|
||||
|
||||
@@ -180,7 +180,7 @@ class _SavingTemplateDialogViewState extends State<SavingTemplateDialogView> {
|
||||
const SizedBox(width: 8),
|
||||
Expanded(
|
||||
child: LinearProgressIndicator(
|
||||
color: Colors.white.withOpacity(0.6),
|
||||
color: Colors.white.withValues(alpha: 0.6),
|
||||
backgroundColor: AppColor.primaryColor,
|
||||
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
||||
),
|
||||
|
||||
@@ -188,7 +188,7 @@ class _SendingMessageDialogViewState extends State<SendingMessageDialogView> {
|
||||
const SizedBox(width: 8),
|
||||
Expanded(
|
||||
child: LinearProgressIndicator(
|
||||
color: Colors.white.withOpacity(0.6),
|
||||
color: Colors.white.withValues(alpha: 0.6),
|
||||
backgroundColor: AppColor.primaryColor,
|
||||
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
||||
),
|
||||
|
||||
@@ -169,7 +169,7 @@ class _PrintDraftDialogViewState extends State<PrintDraftDialogView> {
|
||||
const SizedBox(width: 8),
|
||||
Expanded(
|
||||
child: LinearProgressIndicator(
|
||||
color: Colors.white.withOpacity(0.6),
|
||||
color: Colors.white.withValues(alpha: 0.6),
|
||||
backgroundColor: AppColor.primaryColor,
|
||||
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
||||
),
|
||||
|
||||
@@ -64,7 +64,7 @@ class ToolbarRichTextWebBuilder extends StatelessWidget with RichTextButtonMixin
|
||||
isSelected: richTextWebController.isMenuHeaderStyleOpen,
|
||||
icon: SvgPicture.asset(
|
||||
RichTextStyleType.headerStyle.getIcon(_imagePaths),
|
||||
colorFilter: AppColor.colorDefaultRichTextButton.withOpacity(opacity).asFilter(),
|
||||
colorFilter: AppColor.colorDefaultRichTextButton.withValues(alpha: opacity).asFilter(),
|
||||
fit: BoxFit.fill
|
||||
),
|
||||
padding: const EdgeInsets.symmetric(vertical: 5, horizontal: 5),
|
||||
|
||||
Reference in New Issue
Block a user