Skip to content

Commit 0d5bc87

Browse files
TF-3586: Upgrade Flutter to 3.27.4
1 parent c7f5dc9 commit 0d5bc87

File tree

109 files changed

+361
-372
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+361
-372
lines changed

.github/workflows/analyze-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Setup flutter
3333
uses: subosito/flutter-action@v2
3434
with:
35-
flutter-version: "3.24.5"
35+
flutter-version: "3.27.4"
3636
channel: "stable"
3737
cache: true
3838
cache-key: "deps-${{ hashFiles('**/pubspec.lock') }}"

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
name: Build dev binaries
77

88
env:
9-
FLUTTER_VERSION: 3.24.5
9+
FLUTTER_VERSION: 3.27.4
1010
XCODE_VERSION: 16.0
1111

1212
jobs:

.github/workflows/gh-pages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup flutter
2424
uses: subosito/flutter-action@v2
2525
with:
26-
flutter-version: "3.24.5"
26+
flutter-version: "3.27.4"
2727
channel: "stable"
2828
cache: true
2929
cache-key: deps-${{ hashFiles('**/pubspec.lock') }} # optional, change this to force refresh cache

.github/workflows/patrol-integration-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
env:
99
JAVA_VERSION: 17
10-
FLUTTER_VERSION: 3.24.5
10+
FLUTTER_VERSION: 3.27.4
1111

1212
jobs:
1313
mobile_integration_test:

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
name: Release
77

88
env:
9-
FLUTTER_VERSION: 3.24.5
9+
FLUTTER_VERSION: 3.27.4
1010
XCODE_VERSION: 16.0
1111

1212
jobs:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG FLUTTER_VERSION=3.24.5
1+
ARG FLUTTER_VERSION=3.27.4
22
# Stage 1 - Install dependencies and build the app
33
# This matches the flutter version on our CI/CD pipeline on Github
44
FROM --platform=amd64 ghcr.io/cirruslabs/flutter:${FLUTTER_VERSION} AS build-env

contact/pubspec.lock

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ packages:
173173
dependency: transitive
174174
description:
175175
name: collection
176-
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
176+
sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf
177177
url: "https://pub.dev"
178178
source: hosted
179-
version: "1.18.0"
179+
version: "1.19.0"
180180
convert:
181181
dependency: transitive
182182
description:
@@ -708,18 +708,18 @@ packages:
708708
dependency: transitive
709709
description:
710710
name: leak_tracker
711-
sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
711+
sha256: "7bb2830ebd849694d1ec25bf1f44582d6ac531a57a365a803a6034ff751d2d06"
712712
url: "https://pub.dev"
713713
source: hosted
714-
version: "10.0.5"
714+
version: "10.0.7"
715715
leak_tracker_flutter_testing:
716716
dependency: transitive
717717
description:
718718
name: leak_tracker_flutter_testing
719-
sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
719+
sha256: "9491a714cca3667b60b5c420da8217e6de0d1ba7a5ec322fab01758f6998f379"
720720
url: "https://pub.dev"
721721
source: hosted
722-
version: "3.0.5"
722+
version: "3.0.8"
723723
leak_tracker_testing:
724724
dependency: transitive
725725
description:
@@ -1052,7 +1052,7 @@ packages:
10521052
dependency: transitive
10531053
description: flutter
10541054
source: sdk
1055-
version: "0.0.99"
1055+
version: "0.0.0"
10561056
source_gen:
10571057
dependency: transitive
10581058
description:
@@ -1081,10 +1081,10 @@ packages:
10811081
dependency: transitive
10821082
description:
10831083
name: stack_trace
1084-
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
1084+
sha256: "9f47fd3630d76be3ab26f0ee06d213679aa425996925ff3feffdec504931c377"
10851085
url: "https://pub.dev"
10861086
source: hosted
1087-
version: "1.11.1"
1087+
version: "1.12.0"
10881088
stream_channel:
10891089
dependency: transitive
10901090
description:
@@ -1105,10 +1105,10 @@ packages:
11051105
dependency: transitive
11061106
description:
11071107
name: string_scanner
1108-
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
1108+
sha256: "688af5ed3402a4bde5b3a6c15fd768dbf2621a614950b17f04626c431ab3c4c3"
11091109
url: "https://pub.dev"
11101110
source: hosted
1111-
version: "1.2.0"
1111+
version: "1.3.0"
11121112
term_glyph:
11131113
dependency: transitive
11141114
description:
@@ -1121,10 +1121,10 @@ packages:
11211121
dependency: transitive
11221122
description:
11231123
name: test_api
1124-
sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"
1124+
sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c"
11251125
url: "https://pub.dev"
11261126
source: hosted
1127-
version: "0.7.2"
1127+
version: "0.7.3"
11281128
timing:
11291129
dependency: transitive
11301130
description:
@@ -1265,10 +1265,10 @@ packages:
12651265
dependency: transitive
12661266
description:
12671267
name: vm_service
1268-
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
1268+
sha256: f6be3ed8bd01289b34d679c2b62226f63c0e69f9fd2e50a6b3c1c729a961041b
12691269
url: "https://pub.dev"
12701270
source: hosted
1271-
version: "14.2.5"
1271+
version: "14.3.0"
12721272
watcher:
12731273
dependency: transitive
12741274
description:
@@ -1297,10 +1297,10 @@ packages:
12971297
dependency: transitive
12981298
description:
12991299
name: win32
1300-
sha256: a79dbe579cb51ecd6d30b17e0cae4e0ea15e2c0e66f69ad4198f22a6789e94f4
1300+
sha256: "8b338d4486ab3fbc0ba0db9f9b4f5239b6697fcee427939a40e720cbb9ee0a69"
13011301
url: "https://pub.dev"
13021302
source: hosted
1303-
version: "5.5.1"
1303+
version: "5.9.0"
13041304
win32_registry:
13051305
dependency: transitive
13061306
description:

core/lib/presentation/extensions/color_extension.dart

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,15 @@ extension AppColor on Color {
284284
[Color(0xFF87A6F8), Color(0xFF645FF6)],
285285
];
286286

287-
String toHexTriplet() => '#${(value & 0xFFFFFF)
287+
int toInt() {
288+
final alpha = (a * 255).toInt();
289+
final red = (r * 255).toInt();
290+
final green = (g * 255).toInt();
291+
final blue = (b * 255).toInt();
292+
return (alpha << 24) | (red << 16) | (green << 8) | blue;
293+
}
294+
295+
String toHexTriplet() => '#${(toInt() & 0xFFFFFF)
288296
.toRadixString(16)
289297
.padLeft(6, '0')
290298
.toUpperCase()}';

core/lib/presentation/utils/theme_utils.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class ThemeUtils {
1212
fontFamily: ConstantsUI.fontApp,
1313
appBarTheme: _appBarTheme,
1414
textTheme: _textTheme,
15-
hoverColor: Theme.of(context).colorScheme.outline.withOpacity(0.08),
15+
hoverColor: Theme.of(context).colorScheme.outline.withValues(alpha: 0.08),
1616
textSelectionTheme: _textSelectionTheme,
1717
dividerTheme: _dividerTheme,
1818
visualDensity: VisualDensity.adaptivePlatformDensity,
@@ -281,7 +281,7 @@ class ThemeUtils {
281281
letterSpacing: 0.25,
282282
fontSize: 14,
283283
height: 20 / 14,
284-
color: AppColor.textSecondary.withOpacity(0.48),
284+
color: AppColor.textSecondary.withValues(alpha: 0.48),
285285
);
286286

287287
static const TextStyle textStyleM3BodyLarge = TextStyle(
@@ -317,7 +317,7 @@ class ThemeUtils {
317317
letterSpacing: 0.0,
318318
fontSize: 24,
319319
height: 28.01 / 24,
320-
color: AppColor.gray424244.withOpacity(0.9),
320+
color: AppColor.gray424244.withValues(alpha: 0.9),
321321
);
322322

323323
static const TextStyle defaultTextStyleInterFont = TextStyle(

core/lib/presentation/views/dialog/color_picker_dialog_builder.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class ColorPickerDialogBuilder {
8888
colorCodeHasColor: true,
8989
shouldUpdate: _shouldUpdate,
9090
onColorChanged: (Color color) {
91-
if (AppColor.listColorsPicker.any((element) => element.value == color.value)) {
91+
if (AppColor.listColorsPicker.any((element) => element.toInt() == color.toInt())) {
9292
_shouldUpdate = true;
9393
_currentColor.value = color;
9494
} else {

0 commit comments

Comments
 (0)