Skip to content

Commit 310242e

Browse files
authored
Flutter 3.32 arrived! (#93)
This pull request introduces several updates related to Flutter version upgrades, new features, and enhancements to the example project. Key changes include upgrading to Flutter 3.32.0, adding new components such as alerts and chips, and enhancing existing functionality. Below is a breakdown of the most important changes: ### Flutter Upgrade and Configuration Updates: * Updated Flutter version from `3.27.3` to `3.32.0` in `.fvmrc` and updated container images in `.github/workflows/publish.yml` to align with the new Flutter version. [[1]](diffhunk://#diff-9cea93327e1b3783fb81d02be3fd8a69c427d30e1e45725eec4e69c254f15050L2-R2) [[2]](diffhunk://#diff-551d1fcf87f78cc3bc18a7b332a4dc5d8773a512062df881c5aba28a6f5c48d7L18-R18) [[3]](diffhunk://#diff-551d1fcf87f78cc3bc18a7b332a4dc5d8773a512062df881c5aba28a6f5c48d7L46-R46) * Updated `example/pubspec.yaml` to require Flutter `>=3.32.0` and Dart SDK `>=3.8.0`. ### Example Project Enhancements: * Added a new `AlertsView` in `example/lib/views/alerts.dart` to showcase chips and alerts, and integrated it into the navigation system (`example/lib/router.dart` and `example/lib/store/wrapper.dart`). [[1]](diffhunk://#diff-8d046859c3eac0aba5c4c2443eb8dbf231527edca89172d36db9370e327498bbR1-R85) [[2]](diffhunk://#diff-81669eb3da47eae021c6cfa6ca3a6891011715fcac275f49f10e208e6bb1bab5R49-R52) [[3]](diffhunk://#diff-81669eb3da47eae021c6cfa6ca3a6891011715fcac275f49f10e208e6bb1bab5L135-R140) [[4]](diffhunk://#diff-67854b14151635df69fbb265479181c7804fd40de9b733f78c74863eafd287daR175-R179) * Enhanced the snackbar functionality in `example/lib/views/snackbars/src/basic.dart` by adding support for multiple simultaneous snackbars and improving the display logic. ### Component Additions and Improvements: * Added new exports for `alerts` and `chips` components in `lib/layrz_theme.dart`. * Introduced `forceMobileMode` for `ThemedActionsButtons` and added suffix text for `ThemedNumberInput`. [[1]](diffhunk://#diff-5a3eb67825f6feb445d30989e2c8bd78edda63f630c0ccb225fec768fba8b2bdR382) [[2]](diffhunk://#diff-5a65462632077259df8e5a85ad467d3b4624c320f267bed33b4c60ebab197df0R158) ### Formatting and Configuration Cleanup: * Removed `.vscode/settings.json` and added formatting rules (`page_width` and `trailing_commas`) to `analysis_options.yaml` and `example/analysis_options.yaml`. [[1]](diffhunk://#diff-9a967a7bb0393381dfdf9cce102a9cea39146829ab8b38e983d54ac8827486bcR2-R5) [[2]](diffhunk://#diff-ef52b1226c697a95c613aacbd255ab4655f91a7d19c31fde92171b5c42e96771L1-R5) These changes collectively improve the project by leveraging the latest Flutter version, introducing new user interface components, and enhancing developer experience through better configuration and formatting.
2 parents fbff559 + 46523cd commit 310242e

68 files changed

Lines changed: 2991 additions & 1968 deletions

Some content is hidden

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

.fvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"flutter": "3.27.3",
2+
"flutter": "3.32.0",
33
"flavors": {}
44
}

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
publish:
1616
runs-on: ubuntu-latest
1717
container:
18-
image: ghcr.io/goldenm-software/flutter-web-builder:flutter3.27.2-python3.13
18+
image: ghcr.io/goldenm-software/flutter-web-builder:flutter3.32.0-uv-python3.13
1919
options: --user root
2020
credentials:
2121
username: ${{ github.repository_owner }}
@@ -43,7 +43,7 @@ jobs:
4343
buils-site:
4444
runs-on: ubuntu-latest
4545
container:
46-
image: ghcr.io/goldenm-software/flutter-web-builder:flutter3.27.1-python3.13
46+
image: ghcr.io/goldenm-software/flutter-web-builder:flutter3.32.0-uv-python3.13
4747
options: --user root
4848
credentials:
4949
username: ${{ github.repository_owner }}

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,6 @@ credentials.json
4545
.env
4646

4747
# FVM Version Cache
48-
.fvm/
48+
.fvm/
49+
50+
.vscode/settings.json

.vscode/launch.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
"name": "VSCode connected device",
66
"cwd": "example",
77
"request": "launch",
8-
"type": "dart"
8+
"type": "dart",
9+
"toolArgs": [
10+
"--web-experimental-hot-reload"
11+
]
912
},
1013
{
1114
"name": "VSCode connected device (Profile)",

.vscode/settings.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,83 @@
11
# Changelog
22

3+
## 7.3.0
4+
5+
- Stable release
6+
7+
## 7.3.0-rc.2
8+
9+
- Removed a `debugPrint` from `ThemedSnackbarMessenger`
10+
11+
## 7.3.0-rc.1
12+
13+
- Release candidate 1
14+
15+
## 7.3.0-beta.12
16+
17+
- Added `itemExtend` to `ThemedDualListInput`, `ThemedSelectInput` and `ThemedMultiSelectInput` to set the item extend of the lists.
18+
19+
## 7.3.0-beta.11
20+
21+
- Added `ThemedAlertType.custom` to support custom colors and icons in `ThemedAlert` and `ThemedAlertIcon`.
22+
- Added `ThemedAlertStyle.filledIcon` to support a filled icon style in `ThemedAlert`.
23+
- Added `iconSize` on `ThemedAlert` to control the size of the icon in the alert.
24+
25+
## 7.3.0-beta.10
26+
27+
- Modified `ThemedSnackbar` to use a new format of visualization, now will be displayed the first item of a queue.
28+
- Some changes on input styling to be more consistent with the other inputs.
29+
30+
## 7.3.0-beta.9
31+
32+
- Added `padding` prop to `ThemedChip` to handle the padding of the chip.
33+
34+
## 7.3.0-beta.8
35+
36+
- Added `ThemedChip` to display a chip with a custom message and color.
37+
38+
## 7.3.0-beta.7
39+
40+
- Added new widget `ThemedAlert` to display an alert with a custom message.
41+
- Added new widget `ThemedAlertIcon` to display the icon using the Layrz Standard Alert styling.
42+
43+
## 7.3.0-beta.6
44+
45+
- Changes on `ThemedButton` related to `RichText` rendering.
46+
- Changed size of `ThemedButton` to `46u` instead of `40u`.
47+
- Fixes on `ThemedAvatar` to support `ClipRect` instead of trust on the `clipBehavior` of the `Container`.
48+
- Modified extension `ThemedColorExtensions` to use getters with combination of the methods.
49+
50+
## 7.3.0-beta.5
51+
52+
- Updated dependencies to latest
53+
54+
## 7.3.0-beta.4
55+
56+
- Changes on shadows on `ThemedLayout`.
57+
- Changes on `ThemedScaffoldView`.
58+
59+
## 7.3.0-beta.3
60+
61+
- Increasing the size from `35u` to `46u` on the `ThemedButton` to be more consistent with the Material 3 design.
62+
- Increased horizontal padding from `10u` to `20u` on the `ThemedButton` to be more consistent with the Material 3 design.
63+
- Modified `actionsPadding` on `ThemedActionsButtons` to add by default a left padding of `5u`.
64+
- Updated `ThemedCalendar` to display the selected dates like `ThemedButtonStyle.filledTonal` instead of `ThemedButtonStyle.filled`.
65+
- Updated row height of `ThemedTable` to `50u` due to the new button size.
66+
- Added extension of `BuildContext` to get pre-defined text styles.
67+
68+
## 7.3.0-beta.2
69+
70+
- Updated `generateContainerElevation()` design to use `Colors.black.withValues(alpha: 0.1)` instead of shadow color.
71+
- Modified `generateContainerElevation()` elevation visualization to be more smooth.
72+
73+
## 7.3.0-beta.1
74+
75+
- Required changes applied to support Flutter 3.32.0
76+
77+
## 7.2.13
78+
79+
- Added a way to keep the tab position when the `tabs` is resizing on `ThemedTabView`.
80+
381
## 7.2.12
482
- Added `maximumDecimalDigits` prop to `ThemedNumberInput` to allow to increase the number of decimal digits.
583
- Fixed `ThemedNumberInput` cursor behaviour to improve experience when typing numbers.

analysis_options.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
include: package:flutter_lints/flutter.yaml
2+
3+
formatter:
4+
page_width: 120
5+
trailing_commas: preserve

example/.metadata

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: "2663184aa79047d0a33a14a3b607954f8fdd8730"
7+
revision: "be698c48a6750c8cb8e61c740ca9991bb947aba2"
88
channel: "stable"
99

1010
project_type: app
@@ -13,11 +13,11 @@ project_type: app
1313
migration:
1414
platforms:
1515
- platform: root
16-
create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
17-
base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
18-
- platform: android
19-
create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
20-
base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
16+
create_revision: be698c48a6750c8cb8e61c740ca9991bb947aba2
17+
base_revision: be698c48a6750c8cb8e61c740ca9991bb947aba2
18+
- platform: web
19+
create_revision: be698c48a6750c8cb8e61c740ca9991bb947aba2
20+
base_revision: be698c48a6750c8cb8e61c740ca9991bb947aba2
2121

2222
# User provided section
2323

example/analysis_options.yaml

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,5 @@
1-
# This file configures the analyzer, which statically analyzes Dart code to
2-
# check for errors, warnings, and lints.
3-
#
4-
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5-
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6-
# invoked from the command line by running `flutter analyze`.
7-
8-
# The following line activates a set of recommended lints for Flutter apps,
9-
# packages, and plugins designed to encourage good coding practices.
101
include: package:flutter_lints/flutter.yaml
112

12-
linter:
13-
# The lint rules applied to this project can be customized in the
14-
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15-
# included above or to enable additional rules. A list of all available lints
16-
# and their documentation is published at
17-
# https://dart-lang.github.io/linter/lints/index.html.
18-
#
19-
# Instead of disabling a lint rule for the entire project in the
20-
# section below, it can also be suppressed for a single line of code
21-
# or a specific dart file by using the `// ignore: name_of_lint` and
22-
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
23-
# producing the lint.
24-
rules:
25-
# avoid_print: false # Uncomment to disable the `avoid_print` rule
26-
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27-
28-
# Additional information about this file can be found at
29-
# https://dart.dev/guides/language/analysis-options
3+
formatter:
4+
page_width: 120
5+
trailing_commas: preserve

example/lib/router.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import 'package:flutter/foundation.dart';
22
import 'package:flutter/material.dart';
33
import 'package:go_router/go_router.dart';
44
import 'package:layrz_theme/layrz_theme.dart';
5+
import 'package:layrz_theme_example/views/alerts.dart';
56
import 'package:layrz_theme_example/views/avatars/avatars.dart';
67
import 'package:layrz_theme_example/views/colorblindness.dart';
78
import 'package:layrz_theme_example/views/home.dart';
@@ -45,6 +46,10 @@ final goRoutes = [
4546
path: '/layo',
4647
pageBuilder: (context, state) => customTransitionBuilder(context, state, const LayoView()),
4748
),
49+
GoRoute(
50+
path: '/alerts',
51+
pageBuilder: (context, state) => customTransitionBuilder(context, state, const AlertsView()),
52+
),
4853
GoRoute(
4954
path: '/avatars',
5055
redirect: (context, state) => '/avatars/static',
@@ -132,7 +137,7 @@ final goRoutes = [
132137
];
133138

134139
final router = GoRouter(
135-
initialLocation: kDebugMode ? '/table/basic' : '/',
140+
initialLocation: kDebugMode ? '/alerts' : '/',
136141
errorPageBuilder: (context, state) => customTransitionBuilder(context, state, const NotFoundView()),
137142
routes: goRoutes,
138143
);

0 commit comments

Comments
 (0)