From f47dd9829e145acc795b4e3e62f8bc668135fcd6 Mon Sep 17 00:00:00 2001 From: dab246 Date: Tue, 20 Aug 2024 09:25:50 +0700 Subject: [PATCH] Remove `Padding` property unnecessary --- lib/src/presentation/language_tool_text_field.dart | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/src/presentation/language_tool_text_field.dart b/lib/src/presentation/language_tool_text_field.dart index 9b4587d..148153f 100644 --- a/lib/src/presentation/language_tool_text_field.dart +++ b/lib/src/presentation/language_tool_text_field.dart @@ -18,9 +18,6 @@ class LanguageToolTextField extends StatefulWidget { /// Mistake popup window final MistakePopup? mistakePopup; - /// Padding for the text field - final EdgeInsetsGeometry? padding; - /// The maximum number of lines to show at one time, wrapping if necessary. final int? maxLines; @@ -64,7 +61,6 @@ class LanguageToolTextField extends StatefulWidget { this.decoration = const InputDecoration(), this.language = 'auto', this.mistakePopup, - this.padding = const EdgeInsets.all(24), this.maxLines = 1, this.minLines, this.expands = false, @@ -158,13 +154,6 @@ class _LanguageToolTextFieldState extends State { childWidget = Center(child: childWidget); } - if (widget.padding != null) { - childWidget = Padding( - padding: widget.padding ?? EdgeInsets.zero, - child: childWidget, - ); - } - return childWidget; }, );