diff --git a/forui/lib/src/theme/style.dart b/forui/lib/src/theme/style.dart index aea33c4eb..88076bf29 100644 --- a/forui/lib/src/theme/style.dart +++ b/forui/lib/src/theme/style.dart @@ -1,10 +1,10 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; -import 'package:forui/theme.dart'; import 'package:meta/meta.dart'; import 'package:forui/forui.dart'; +import 'package:forui/theme.dart'; /// A set of miscellaneous properties that is part of a [FThemeData]. /// @@ -39,12 +39,11 @@ final class FStyle with Diagnosticable { required FColorScheme colorScheme, required FTypography typography, }) : this( - formFieldStyle: FFormFieldStyle.inherit( - colorScheme: colorScheme, - typography: typography, - ), - ); - + formFieldStyle: FFormFieldStyle.inherit( + colorScheme: colorScheme, + typography: typography, + ), + ); /// Returns a copy of this [FStyle] with the given properties replaced. /// diff --git a/forui/lib/src/widgets/text_field/text_field_style.dart b/forui/lib/src/widgets/text_field/text_field_style.dart index 2c1211684..afad2f1d8 100644 --- a/forui/lib/src/widgets/text_field/text_field_style.dart +++ b/forui/lib/src/widgets/text_field/text_field_style.dart @@ -196,8 +196,7 @@ final class FTextFieldStateStyle with Diagnosticable { required FFormFieldStateStyle formFieldStateStyle, required FTypography typography, required FStyle style, - }) : - labelTextStyle = formFieldStateStyle.labelTextStyle, + }) : labelTextStyle = formFieldStateStyle.labelTextStyle, contentTextStyle = typography.sm.copyWith( fontFamily: typography.defaultFontFamily, color: contentColor, diff --git a/forui/lib/src/widgets/text_field/text_form_field.dart b/forui/lib/src/widgets/text_field/text_form_field.dart index 568f8002c..076136b3b 100644 --- a/forui/lib/src/widgets/text_field/text_form_field.dart +++ b/forui/lib/src/widgets/text_field/text_form_field.dart @@ -6,7 +6,8 @@ class _Field extends FormField { FTextField parent, FTextFieldStyle style, FTextFieldStateStyle stateStyle, - ) => InputDecoration( + ) => + InputDecoration( suffixIcon: parent.suffix, // See https://stackoverflow.com/questions/70771410/flutter-how-can-i-remove-the-content-padding-for-error-in-textformfield prefix: Padding(padding: EdgeInsets.only(left: style.contentPadding.left)),