Skip to content

Commit

Permalink
Flutter3.27 (#2483)
Browse files Browse the repository at this point in the history
Updating samples for the next stable release
  • Loading branch information
ericwindmill authored Dec 11, 2024
1 parent 1ccce7c commit f25adf4
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 24 deletions.
2 changes: 2 additions & 0 deletions compass_app/app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
*.swp
.DS_Store
.atom/
.build/
.buildlog/
.history
.svn/
.swiftpm/
migrate_working_dir/

# IntelliJ related
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class _Card extends StatelessWidget {
CachedNetworkImage(
imageUrl: imageUrl,
fit: BoxFit.cover,
color: showTitle ? Colors.black.withOpacity(0.5) : null,
color: showTitle ? Colors.black.withValues(alpha: 0.5) : null,
colorBlendMode: showTitle ? BlendMode.darken : null,
errorListener: imageErrorListener,
),
Expand Down
13 changes: 13 additions & 0 deletions compass_app/app/lib/ui/home/widgets/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import 'package:go_router/go_router.dart';
import '../../../domain/models/booking/booking_summary.dart';
import '../../../routing/routes.dart';
import '../../core/localization/applocalization.dart';
import '../../core/themes/colors.dart';
import '../../core/themes/dimens.dart';
import '../../core/ui/date_format_start_end.dart';
import '../../core/ui/error_indicator.dart';
Expand Down Expand Up @@ -166,6 +167,18 @@ class _Booking extends StatelessWidget {
key: ValueKey(booking.id),
direction: DismissDirection.endToStart,
confirmDismiss: confirmDismiss,
background: Container(
color: AppColors.grey1,
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Padding(
padding: const EdgeInsets.only(right: Dimens.paddingHorizontal),
child: Icon(Icons.delete),
),
],
),
),
child: InkWell(
onTap: onTap,
child: Padding(
Expand Down
1 change: 0 additions & 1 deletion ios_app_clip/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import 'package:device_info/device_info.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

void main() {
runApp(const Demo());
Expand Down
6 changes: 3 additions & 3 deletions material_3_demo/lib/color_box.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ class _ColorBoxState extends State<ColorBox> {
// Will change from int 0-255 to double 0.0-1.0 in 3.26+
// The properties also change from red/green/blue to r/g/b
// hex += (c.[r g b] * 255.0).round().toRadixString(16).padLeft(2, '0');
hex += c.red.toRadixString(16).padLeft(2, '0');
hex += c.green.toRadixString(16).padLeft(2, '0');
hex += c.blue.toRadixString(16).padLeft(2, '0');
hex += c.r.round().toRadixString(16).padLeft(2, '0');
hex += c.g.round().toRadixString(16).padLeft(2, '0');
hex += c.b.round().toRadixString(16).padLeft(2, '0');
final data = ClipboardData(text: hex);
await Clipboard.setData(data);
messenger.hideCurrentSnackBar();
Expand Down
1 change: 0 additions & 1 deletion material_3_demo/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ version: 1.0.0+1

environment:
sdk: ^3.5.0
flutter: ^3.19.0

dependencies:
flutter:
Expand Down
14 changes: 5 additions & 9 deletions tool/flutter_ci_script_beta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ declare -ar PROJECT_NAMES=(
"code_sharing/client"
"code_sharing/server"
"code_sharing/shared"
# @ewindmill: withOpacity is deprecated
# "compass_app/app"
# "compass_app/server"
"compass_app/app"
"compass_app/server"
"context_menus"
"deeplink_store_example"
"desktop_photo_search/fluent_ui"
Expand All @@ -40,19 +39,16 @@ declare -ar PROJECT_NAMES=(
# "experimental/pedometer"
"experimental/pedometer/example"
"experimental/varfont_shader_puzzle"
# TODO(ewindmill): whereNotNull deprecated in dart:collection
# "experimental/web_dashboard"
"experimental/web_dashboard"
"flutter_maps_firestore"
"form_app"
"game_template"
"gemini_tasks"
"google_maps"
"infinite_list"
# 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'.
# "ios_app_clip"
"ios_app_clip"
"isolate_example"
# TODO(ewindmill): Color.red is deprecated and should be Color.r (same for green and blue)
# "material_3_demo"
"material_3_demo"
"navigation_and_routing"
"place_tracker"
"platform_channels"
Expand Down
14 changes: 5 additions & 9 deletions tool/flutter_ci_script_master.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ declare -ar PROJECT_NAMES=(
"code_sharing/client"
"code_sharing/server"
"code_sharing/shared"
# @ewindmill: withOpacity is deprecated
# "compass_app/app"
# "compass_app/server"
"compass_app/app"
"compass_app/server"
"context_menus"
"deeplink_store_example"
"desktop_photo_search/fluent_ui"
Expand All @@ -40,19 +39,16 @@ declare -ar PROJECT_NAMES=(
# "experimental/pedometer"
"experimental/pedometer/example"
"experimental/varfont_shader_puzzle"
# TODO(ewindmill): whereNotNull deprecated in dart:collection
# "experimental/web_dashboard"
"experimental/web_dashboard"
"flutter_maps_firestore"
"form_app"
"game_template"
"gemini_tasks"
"google_maps"
"infinite_list"
# 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'.
# "ios_app_clip"
"ios_app_clip"
"isolate_example"
# TODO(ewindmill): Color.red is deprecated and should be Color.r (same for green and blue)
# "material_3_demo"
"material_3_demo"
"navigation_and_routing"
"place_tracker"
"platform_channels"
Expand Down

0 comments on commit f25adf4

Please sign in to comment.