6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 5484adef

AuthorNKL<nikolaj.king@gmail.com>
Date2025-02-21 12:35:53 +0100
clean deprecated methods

Changed files

.../lib/common/components/generic_dialog.dart            |  2 +-
 .../profile_settings/components/comwell_text_field.dart  |  2 +-
 .../profile_settings/components/date_time_picker.dart    | 16 +++++++++-------
 3 files changed, 11 insertions(+), 9 deletions(-)

Diff

diff --git a/comwell_key_app/lib/common/components/generic_dialog.dart b/comwell_key_app/lib/common/components/generic_dialog.dart
index c7443f19..cc81a689 100644
--- a/comwell_key_app/lib/common/components/generic_dialog.dart
+++ b/comwell_key_app/lib/common/components/generic_dialog.dart
@@ -44,7 +44,7 @@ class GenericDialog extends StatelessWidget {
Text(
content,
textAlign: TextAlign.center,
- style: theme.textTheme.bodySmall?.copyWith(color: Colors.black.withOpacity(0.65))
+ style: theme.textTheme.bodySmall?.copyWith(color: Colors.black.withAlpha((0.65 * 255).toInt()))
),
const SizedBox(height: 20),
Padding(
diff --git a/comwell_key_app/lib/profile_settings/components/comwell_text_field.dart b/comwell_key_app/lib/profile_settings/components/comwell_text_field.dart
index 71bfeb7e..78ef6aa1 100644
--- a/comwell_key_app/lib/profile_settings/components/comwell_text_field.dart
+++ b/comwell_key_app/lib/profile_settings/components/comwell_text_field.dart
@@ -57,7 +57,7 @@ class ComwellTextFieldState extends State<ComwellTextField> {
label: Text(widget.fieldName,
style: _isFocused
? theme.textTheme.bodySmall
- ?.copyWith(color: Colors.black.withOpacity(0.65))
+ ?.copyWith(color: Colors.black.withAlpha((0.65 * 255).toInt()))
: theme.textTheme.headlineSmall
?.copyWith(color: Colors.black)),
isDense: true,
diff --git a/comwell_key_app/lib/profile_settings/components/date_time_picker.dart b/comwell_key_app/lib/profile_settings/components/date_time_picker.dart
index 8579ab51..d22f5c10 100644
--- a/comwell_key_app/lib/profile_settings/components/date_time_picker.dart
+++ b/comwell_key_app/lib/profile_settings/components/date_time_picker.dart
@@ -48,13 +48,15 @@ class _DatePickerState extends State<DateTimePicker> {
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: [
- Text(widget.title,
- textAlign: TextAlign.start,
- style: theme.textTheme.bodySmall?.copyWith(
- color: Colors.black.withAlpha(
- (0.65 * 255).toInt(),
- ),
- ),),
+ Text(
+ widget.title,
+ textAlign: TextAlign.start,
+ style: theme.textTheme.bodySmall?.copyWith(
+ color: Colors.black.withAlpha(
+ (0.65 * 255).toInt(),
+ ),
+ ),
+ ),
const SizedBox(height: 0.0),
Text(
_selectedDate != null