From 1f1faa079a8ca073cd6233497b2c1d1011aa2ba2 Mon Sep 17 00:00:00 2001 From: "A. K. M. Saiful Islam" Date: Tue, 10 Nov 2020 17:59:32 +0600 Subject: [PATCH] fixed deprecated themeSelection for cursor color --- lib/src/pin_code_fields.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/pin_code_fields.dart b/lib/src/pin_code_fields.dart index 04d67463..590fad72 100644 --- a/lib/src/pin_code_fields.dart +++ b/lib/src/pin_code_fields.dart @@ -418,8 +418,8 @@ class _PinCodeTextFieldState extends State (_selectedIndex == index + 1 && index + 1 == widget.length)) && _focusNode.hasFocus && widget.showCursor) { - final cursorColor = - widget.cursorColor ?? Theme.of(widget.appContext).cursorColor; + final cursorColor = widget.cursorColor ?? + Theme.of(widget.appContext).textSelectionTheme.cursorColor; final cursorHeight = widget.cursorHeight ?? widget.textStyle.fontSize + 8; if ((_selectedIndex == index + 1 && index + 1 == widget.length)) {