Skip to content

Commit 1f1faa0

Browse files
committed
fixed deprecated themeSelection for cursor color
1 parent 273fd5f commit 1f1faa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/pin_code_fields.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,8 @@ class _PinCodeTextFieldState extends State<PinCodeTextField>
418418
(_selectedIndex == index + 1 && index + 1 == widget.length)) &&
419419
_focusNode.hasFocus &&
420420
widget.showCursor) {
421-
final cursorColor =
422-
widget.cursorColor ?? Theme.of(widget.appContext).cursorColor;
421+
final cursorColor = widget.cursorColor ??
422+
Theme.of(widget.appContext).textSelectionTheme.cursorColor;
423423
final cursorHeight = widget.cursorHeight ?? widget.textStyle.fontSize + 8;
424424

425425
if ((_selectedIndex == index + 1 && index + 1 == widget.length)) {

0 commit comments

Comments
 (0)