chore(deps): upgrade Flutter SDK from 3.10.1 to 3.27.1

- Update Flutter SDK version to 3.27.1
- Update minimum dart SDK version
- Update dependencies to compatible versions
- Fix deprecated method calls
- Run migration for breaking changes
This commit is contained in:
anhtunz
2025-01-05 18:48:11 +07:00
parent 178a00f5ba
commit fb12c44505
30 changed files with 266 additions and 212 deletions

View File

@@ -221,10 +221,10 @@ class _DeviceNotificationSettingsScreenState
child: TextButton(
style: ButtonStyle(
backgroundColor:
MaterialStateProperty.all<Color>(
WidgetStateProperty.all<Color>(
Colors.green),
foregroundColor:
MaterialStateProperty.all<Color>(
WidgetStateProperty.all<Color>(
Colors.white)),
onPressed: () async {
updateDeviceNotification(

View File

@@ -238,9 +238,9 @@ changeUserInfomation(
},
style: const ButtonStyle(
backgroundColor:
MaterialStatePropertyAll(Colors.blue),
WidgetStatePropertyAll(Colors.blue),
foregroundColor:
MaterialStatePropertyAll(Colors.white),
WidgetStatePropertyAll(Colors.white),
),
child: Text(appLocalization(context)
.update_button_content),
@@ -418,9 +418,9 @@ changeUserPassword(BuildContext context, SettingsBloc settingsBloc) {
},
style: const ButtonStyle(
backgroundColor:
MaterialStatePropertyAll(Colors.blue),
WidgetStatePropertyAll(Colors.blue),
foregroundColor:
MaterialStatePropertyAll(Colors.white),
WidgetStatePropertyAll(Colors.white),
),
child: Text(appLocalization(context)
.update_button_content),