Skip to content

Commit

Permalink
Remove Padding property unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
dab246 committed Aug 20, 2024
1 parent ae95b4c commit f47dd98
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/src/presentation/language_tool_text_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -158,13 +154,6 @@ class _LanguageToolTextFieldState extends State<LanguageToolTextField> {
childWidget = Center(child: childWidget);
}

if (widget.padding != null) {
childWidget = Padding(
padding: widget.padding ?? EdgeInsets.zero,
child: childWidget,
);
}

return childWidget;
},
);
Expand Down

0 comments on commit f47dd98

Please sign in to comment.