TF-3586: Upgrade Flutter to 3.27.4
This commit is contained in:
@@ -284,7 +284,15 @@ extension AppColor on Color {
|
||||
[Color(0xFF87A6F8), Color(0xFF645FF6)],
|
||||
];
|
||||
|
||||
String toHexTriplet() => '#${(value & 0xFFFFFF)
|
||||
int toInt() {
|
||||
final alpha = (a * 255).toInt();
|
||||
final red = (r * 255).toInt();
|
||||
final green = (g * 255).toInt();
|
||||
final blue = (b * 255).toInt();
|
||||
return (alpha << 24) | (red << 16) | (green << 8) | blue;
|
||||
}
|
||||
|
||||
String toHexTriplet() => '#${(toInt() & 0xFFFFFF)
|
||||
.toRadixString(16)
|
||||
.padLeft(6, '0')
|
||||
.toUpperCase()}';
|
||||
|
||||
@@ -12,7 +12,7 @@ class ThemeUtils {
|
||||
fontFamily: ConstantsUI.fontApp,
|
||||
appBarTheme: _appBarTheme,
|
||||
textTheme: _textTheme,
|
||||
hoverColor: Theme.of(context).colorScheme.outline.withOpacity(0.08),
|
||||
hoverColor: Theme.of(context).colorScheme.outline.withValues(alpha: 0.08),
|
||||
textSelectionTheme: _textSelectionTheme,
|
||||
dividerTheme: _dividerTheme,
|
||||
visualDensity: VisualDensity.adaptivePlatformDensity,
|
||||
@@ -281,7 +281,7 @@ class ThemeUtils {
|
||||
letterSpacing: 0.25,
|
||||
fontSize: 14,
|
||||
height: 20 / 14,
|
||||
color: AppColor.textSecondary.withOpacity(0.48),
|
||||
color: AppColor.textSecondary.withValues(alpha: 0.48),
|
||||
);
|
||||
|
||||
static const TextStyle textStyleM3BodyLarge = TextStyle(
|
||||
@@ -317,7 +317,7 @@ class ThemeUtils {
|
||||
letterSpacing: 0.0,
|
||||
fontSize: 24,
|
||||
height: 28.01 / 24,
|
||||
color: AppColor.gray424244.withOpacity(0.9),
|
||||
color: AppColor.gray424244.withValues(alpha: 0.9),
|
||||
);
|
||||
|
||||
static const TextStyle defaultTextStyleInterFont = TextStyle(
|
||||
|
||||
@@ -88,7 +88,7 @@ class ColorPickerDialogBuilder {
|
||||
colorCodeHasColor: true,
|
||||
shouldUpdate: _shouldUpdate,
|
||||
onColorChanged: (Color color) {
|
||||
if (AppColor.listColorsPicker.any((element) => element.value == color.value)) {
|
||||
if (AppColor.listColorsPicker.any((element) => element.toInt() == color.toInt())) {
|
||||
_shouldUpdate = true;
|
||||
_currentColor.value = color;
|
||||
} else {
|
||||
|
||||
@@ -31,7 +31,7 @@ class ConfirmDialogButton extends StatelessWidget {
|
||||
return TextButton(
|
||||
style: TextButton.styleFrom(
|
||||
backgroundColor: backgroundColor,
|
||||
overlayColor: Theme.of(context).colorScheme.outline.withOpacity(0.08),
|
||||
overlayColor: Theme.of(context).colorScheme.outline.withValues(alpha: 0.08),
|
||||
shape: outlineBorder,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 10),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user