We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a92ca15 + e4b69a6 commit 6030284Copy full SHA for 6030284
lib/src/pin_code_fields.dart
@@ -419,7 +419,8 @@ class _PinCodeTextFieldState extends State<PinCodeTextField>
419
_focusNode.hasFocus &&
420
widget.showCursor) {
421
final cursorColor = widget.cursorColor ??
422
- Theme.of(widget.appContext).textSelectionTheme.cursorColor;
+ Theme.of(widget.appContext).textSelectionTheme?.cursorColor ??
423
+ Theme.of(context).accentColor;
424
final cursorHeight = widget.cursorHeight ?? widget.textStyle.fontSize + 8;
425
426
if ((_selectedIndex == index + 1 && index + 1 == widget.length)) {
0 commit comments