File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 2525
2626 - name : Custom lint
2727 run : dart run custom_lint
28-
28+
2929 - name : Check formatting
3030 run : dart format . --set-exit-if-changed
3131
3838 else
3939 echo "Tests not found."
4040 fi
41+
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ class LanguageToolTextField extends StatefulWidget {
1818 /// Mistake popup window
1919 final MistakePopup ? mistakePopup;
2020
21+ /// Padding for the text field
22+ final EdgeInsetsGeometry ? padding;
23+
2124 /// The maximum number of lines to show at one time, wrapping if necessary.
2225 final int ? maxLines;
2326
@@ -46,6 +49,7 @@ class LanguageToolTextField extends StatefulWidget {
4649 this .decoration = const InputDecoration (),
4750 this .language = 'auto' ,
4851 this .mistakePopup,
52+ this .padding,
4953 this .maxLines = 1 ,
5054 this .minLines,
5155 this .expands = false ,
@@ -98,7 +102,7 @@ class _LanguageToolTextFieldState extends State<LanguageToolTextField> {
98102 );
99103
100104 return Padding (
101- padding: const EdgeInsets .all (_padding),
105+ padding: widget.padding ?? const EdgeInsets .all (_padding),
102106 child: Center (
103107 child: TextField (
104108 textAlign: widget.textAlign,
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class MistakePopup {
3636 context,
3737 position: popupPosition,
3838 onClose: onClose,
39- popupBuilder: (context ) => builder.call (
39+ popupBuilder: (_ ) => builder.call (
4040 popupRenderer: popupRenderer,
4141 mistake: mistake,
4242 controller: controller,
You can’t perform that action at this time.
0 commit comments