@@ -32,6 +32,13 @@ class LanguageToolTextField extends StatefulWidget {
3232 /// ```language``` = 'auto' by default.
3333 final String language;
3434
35+ /// Determine text alignment
36+ /// textAlign = [TextAlign.start] by default.
37+ final TextAlign textAlign;
38+
39+ /// Determine text Direction
40+ final TextDirection ? textDirection;
41+
3542 /// Creates a widget that checks grammar errors.
3643 const LanguageToolTextField ({
3744 required this .controller,
@@ -42,8 +49,8 @@ class LanguageToolTextField extends StatefulWidget {
4249 this .maxLines = 1 ,
4350 this .minLines,
4451 this .expands = false ,
45- this .textAlign = TextAlign .start,
46- this .textDirection,
52+ this .textAlign = TextAlign .start,
53+ this .textDirection,
4754 super .key,
4855 });
4956
@@ -94,8 +101,8 @@ class _LanguageToolTextFieldState extends State<LanguageToolTextField> {
94101 padding: const EdgeInsets .all (_padding),
95102 child: Center (
96103 child: TextField (
97- textAlign: widget.textAlign,
98- textDirection: widget.textDirection,
104+ textAlign: widget.textAlign,
105+ textDirection: widget.textDirection,
99106 focusNode: _focusNode,
100107 controller: widget.controller,
101108 scrollController: _scrollController,
0 commit comments