Skip to content

Commit f47dd98

Browse files
committed
Remove Padding property unnecessary
1 parent ae95b4c commit f47dd98

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

lib/src/presentation/language_tool_text_field.dart

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ class LanguageToolTextField extends StatefulWidget {
1818
/// Mistake popup window
1919
final MistakePopup? mistakePopup;
2020

21-
/// Padding for the text field
22-
final EdgeInsetsGeometry? padding;
23-
2421
/// The maximum number of lines to show at one time, wrapping if necessary.
2522
final int? maxLines;
2623

@@ -64,7 +61,6 @@ class LanguageToolTextField extends StatefulWidget {
6461
this.decoration = const InputDecoration(),
6562
this.language = 'auto',
6663
this.mistakePopup,
67-
this.padding = const EdgeInsets.all(24),
6864
this.maxLines = 1,
6965
this.minLines,
7066
this.expands = false,
@@ -158,13 +154,6 @@ class _LanguageToolTextFieldState extends State<LanguageToolTextField> {
158154
childWidget = Center(child: childWidget);
159155
}
160156

161-
if (widget.padding != null) {
162-
childWidget = Padding(
163-
padding: widget.padding ?? EdgeInsets.zero,
164-
child: childWidget,
165-
);
166-
}
167-
168157
return childWidget;
169158
},
170159
);

0 commit comments

Comments
 (0)