Skip to content

Commit

Permalink
fixed deprecated themeSelection for cursor color
Browse files Browse the repository at this point in the history
  • Loading branch information
adar2378 committed Nov 10, 2020
1 parent 273fd5f commit 1f1faa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/pin_code_fields.dart
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ class _PinCodeTextFieldState extends State<PinCodeTextField>
(_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)) {
Expand Down

0 comments on commit 1f1faa0

Please sign in to comment.