Fix login input cursor color
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit 29f7e4b5eaf55c2e8af5e4c206f7a1aef0248458)
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
import 'package:core/utils/direction_utils.dart';
|
import 'package:core/utils/direction_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_typeahead/flutter_typeahead.dart';
|
import 'package:flutter_typeahead/flutter_typeahead.dart';
|
||||||
@@ -23,6 +24,7 @@ class TypeAheadFormFieldBuilder<T> extends StatefulWidget {
|
|||||||
final List<String>? autofillHints;
|
final List<String>? autofillHints;
|
||||||
final TextInputType keyboardType;
|
final TextInputType keyboardType;
|
||||||
final InputDecoration decoration;
|
final InputDecoration decoration;
|
||||||
|
final Color cursorColor;
|
||||||
|
|
||||||
const TypeAheadFormFieldBuilder({
|
const TypeAheadFormFieldBuilder({
|
||||||
super.key,
|
super.key,
|
||||||
@@ -41,6 +43,7 @@ class TypeAheadFormFieldBuilder<T> extends StatefulWidget {
|
|||||||
this.keyboardType = TextInputType.text,
|
this.keyboardType = TextInputType.text,
|
||||||
this.controller,
|
this.controller,
|
||||||
this.focusNode,
|
this.focusNode,
|
||||||
|
this.cursorColor = AppColor.primaryColor,
|
||||||
this.autofillHints,
|
this.autofillHints,
|
||||||
this.textInputAction,
|
this.textInputAction,
|
||||||
this.onTextChange,
|
this.onTextChange,
|
||||||
@@ -76,6 +79,7 @@ class _TypeAheadFormFieldBuilderState<T> extends State<TypeAheadFormFieldBuilder
|
|||||||
decoration: widget.decoration,
|
decoration: widget.decoration,
|
||||||
focusNode: widget.focusNode,
|
focusNode: widget.focusNode,
|
||||||
textDirection: _textDirection,
|
textDirection: _textDirection,
|
||||||
|
cursorColor: widget.cursorColor,
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
widget.onTextChange?.call(value);
|
widget.onTextChange?.call(value);
|
||||||
if (value.isNotEmpty) {
|
if (value.isNotEmpty) {
|
||||||
|
|||||||
Reference in New Issue
Block a user