From 7fedfa635da2d8bda5dcd8a0cd5e026c19ec705e Mon Sep 17 00:00:00 2001 From: TheNoumanDev Date: Mon, 23 Sep 2024 22:32:25 +0500 Subject: [PATCH] removed fontSize from FormStyles --- modules/ensemble/lib/widget/helpers/form_helper.dart | 2 -- modules/ensemble/lib/widget/input/form_time.dart | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/ensemble/lib/widget/helpers/form_helper.dart b/modules/ensemble/lib/widget/helpers/form_helper.dart index 83180656e..9f2e9bab8 100644 --- a/modules/ensemble/lib/widget/helpers/form_helper.dart +++ b/modules/ensemble/lib/widget/helpers/form_helper.dart @@ -28,7 +28,6 @@ class FormFieldController extends WidgetController { bool? enabled; bool required = false; IconModel? icon; - int? fontSize; int? maxWidth; InputVariant? variant; @@ -65,7 +64,6 @@ class FormFieldController extends WidgetController { floatLabel = Utils.getBool(value, fallback: false), 'required': (value) => required = Utils.getBool(value, fallback: false), 'icon': (value) => icon = Utils.getIcon(value), - 'fontSize': (value) => fontSize = Utils.optionalInt(value), 'maxWidth': (value) => maxWidth = Utils.optionalInt(value, min: 0, max: 5000), 'variant': (type) => variant = InputVariant.values.from(type), diff --git a/modules/ensemble/lib/widget/input/form_time.dart b/modules/ensemble/lib/widget/input/form_time.dart index 5adf4f3f0..e6e042408 100644 --- a/modules/ensemble/lib/widget/input/form_time.dart +++ b/modules/ensemble/lib/widget/input/form_time.dart @@ -55,10 +55,10 @@ class Time extends StatefulWidget class TimeController extends FormFieldController with HasTextPlaceholder { TimeOfDay? value; - Text prettyValue(BuildContext context) { + Text prettyValue(BuildContext context, TextStyle formFieldTextStyle) { if (value != null) { return Text(value!.format(context), - style: TextStyle(fontSize: fontSize?.toDouble())); + style: formFieldTextStyle); } else { return Text(placeholder ?? 'Select a time', style: placeholderStyle); } @@ -136,7 +136,7 @@ class TimeState extends FormFieldWidgetState