Skip to content

Commit f25adf4

Browse files
authored
Flutter3.27 (#2483)
Updating samples for the next stable release
1 parent 1ccce7c commit f25adf4

File tree

8 files changed

+29
-24
lines changed

8 files changed

+29
-24
lines changed

compass_app/app/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
*.swp
66
.DS_Store
77
.atom/
8+
.build/
89
.buildlog/
910
.history
1011
.svn/
12+
.swiftpm/
1113
migrate_working_dir/
1214

1315
# IntelliJ related

compass_app/app/lib/ui/auth/login/widgets/tilted_cards.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class _Card extends StatelessWidget {
8383
CachedNetworkImage(
8484
imageUrl: imageUrl,
8585
fit: BoxFit.cover,
86-
color: showTitle ? Colors.black.withOpacity(0.5) : null,
86+
color: showTitle ? Colors.black.withValues(alpha: 0.5) : null,
8787
colorBlendMode: showTitle ? BlendMode.darken : null,
8888
errorListener: imageErrorListener,
8989
),

compass_app/app/lib/ui/home/widgets/home_screen.dart

+13
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import 'package:go_router/go_router.dart';
88
import '../../../domain/models/booking/booking_summary.dart';
99
import '../../../routing/routes.dart';
1010
import '../../core/localization/applocalization.dart';
11+
import '../../core/themes/colors.dart';
1112
import '../../core/themes/dimens.dart';
1213
import '../../core/ui/date_format_start_end.dart';
1314
import '../../core/ui/error_indicator.dart';
@@ -166,6 +167,18 @@ class _Booking extends StatelessWidget {
166167
key: ValueKey(booking.id),
167168
direction: DismissDirection.endToStart,
168169
confirmDismiss: confirmDismiss,
170+
background: Container(
171+
color: AppColors.grey1,
172+
child: Row(
173+
mainAxisAlignment: MainAxisAlignment.end,
174+
children: [
175+
Padding(
176+
padding: const EdgeInsets.only(right: Dimens.paddingHorizontal),
177+
child: Icon(Icons.delete),
178+
),
179+
],
180+
),
181+
),
169182
child: InkWell(
170183
onTap: onTap,
171184
child: Padding(

ios_app_clip/lib/main.dart

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import 'package:device_info/device_info.dart';
66
import 'package:flutter/cupertino.dart';
7-
import 'package:flutter/material.dart';
87

98
void main() {
109
runApp(const Demo());

material_3_demo/lib/color_box.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ class _ColorBoxState extends State<ColorBox> {
7474
// Will change from int 0-255 to double 0.0-1.0 in 3.26+
7575
// The properties also change from red/green/blue to r/g/b
7676
// hex += (c.[r g b] * 255.0).round().toRadixString(16).padLeft(2, '0');
77-
hex += c.red.toRadixString(16).padLeft(2, '0');
78-
hex += c.green.toRadixString(16).padLeft(2, '0');
79-
hex += c.blue.toRadixString(16).padLeft(2, '0');
77+
hex += c.r.round().toRadixString(16).padLeft(2, '0');
78+
hex += c.g.round().toRadixString(16).padLeft(2, '0');
79+
hex += c.b.round().toRadixString(16).padLeft(2, '0');
8080
final data = ClipboardData(text: hex);
8181
await Clipboard.setData(data);
8282
messenger.hideCurrentSnackBar();

material_3_demo/pubspec.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ version: 1.0.0+1
99

1010
environment:
1111
sdk: ^3.5.0
12-
flutter: ^3.19.0
1312

1413
dependencies:
1514
flutter:

tool/flutter_ci_script_beta.sh

+5-9
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ declare -ar PROJECT_NAMES=(
2222
"code_sharing/client"
2323
"code_sharing/server"
2424
"code_sharing/shared"
25-
# @ewindmill: withOpacity is deprecated
26-
# "compass_app/app"
27-
# "compass_app/server"
25+
"compass_app/app"
26+
"compass_app/server"
2827
"context_menus"
2928
"deeplink_store_example"
3029
"desktop_photo_search/fluent_ui"
@@ -40,19 +39,16 @@ declare -ar PROJECT_NAMES=(
4039
# "experimental/pedometer"
4140
"experimental/pedometer/example"
4241
"experimental/varfont_shader_puzzle"
43-
# TODO(ewindmill): whereNotNull deprecated in dart:collection
44-
# "experimental/web_dashboard"
42+
"experimental/web_dashboard"
4543
"flutter_maps_firestore"
4644
"form_app"
4745
"game_template"
4846
"gemini_tasks"
4947
"google_maps"
5048
"infinite_list"
51-
# TODO(domesticmouse): The import of 'package:flutter/material.dart' is unnecessary because all of the used elements are also provided by the import of 'package:flutter/cupertino.dart'.
52-
# "ios_app_clip"
49+
"ios_app_clip"
5350
"isolate_example"
54-
# TODO(ewindmill): Color.red is deprecated and should be Color.r (same for green and blue)
55-
# "material_3_demo"
51+
"material_3_demo"
5652
"navigation_and_routing"
5753
"place_tracker"
5854
"platform_channels"

tool/flutter_ci_script_master.sh

+5-9
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ declare -ar PROJECT_NAMES=(
2222
"code_sharing/client"
2323
"code_sharing/server"
2424
"code_sharing/shared"
25-
# @ewindmill: withOpacity is deprecated
26-
# "compass_app/app"
27-
# "compass_app/server"
25+
"compass_app/app"
26+
"compass_app/server"
2827
"context_menus"
2928
"deeplink_store_example"
3029
"desktop_photo_search/fluent_ui"
@@ -40,19 +39,16 @@ declare -ar PROJECT_NAMES=(
4039
# "experimental/pedometer"
4140
"experimental/pedometer/example"
4241
"experimental/varfont_shader_puzzle"
43-
# TODO(ewindmill): whereNotNull deprecated in dart:collection
44-
# "experimental/web_dashboard"
42+
"experimental/web_dashboard"
4543
"flutter_maps_firestore"
4644
"form_app"
4745
"game_template"
4846
"gemini_tasks"
4947
"google_maps"
5048
"infinite_list"
51-
# TODO(domesticmouse): The import of 'package:flutter/material.dart' is unnecessary because all of the used elements are also provided by the import of 'package:flutter/cupertino.dart'.
52-
# "ios_app_clip"
49+
"ios_app_clip"
5350
"isolate_example"
54-
# TODO(ewindmill): Color.red is deprecated and should be Color.r (same for green and blue)
55-
# "material_3_demo"
51+
"material_3_demo"
5652
"navigation_and_routing"
5753
"place_tracker"
5854
"platform_channels"

0 commit comments

Comments
 (0)