Skip to content

Commit

Permalink
fix Android Platform interaction issue
Browse files Browse the repository at this point in the history
  • Loading branch information
TinoGuo committed Aug 22, 2020
1 parent f49b4f4 commit 9c24aff
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [3.0.5] - 2020/08/22
* Fix: the interaction issue in Android Platform

## [3.0.4] - 2020/07/04
* New: support `solidColor` in `underlineDecoration`

Expand Down
8 changes: 7 additions & 1 deletion lib/src/widget/pin_widget.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:io';

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
Expand Down Expand Up @@ -193,7 +195,11 @@ class _PinInputTextFieldState extends State<PinInputTextField> {
style: TextStyle(
/// Hide the editing text.
color: Colors.transparent,
fontSize: 0, // To hide the cursor when in select mode
// To hide the cursor when in select mode
fontSize: Platform
.isAndroid // Android Platform is not allowed 0 font size when selectAll
? double.minPositive
: 0,
),

/// Hide the Cursor
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: pin_input_text_field
description: A textField widget to help display different style pin written in pure dart, no extra dependency.
version: 3.0.4
version: 3.0.5
homepage: https://github.com/TinoGuo/pin_input_text_field

environment:
Expand Down

0 comments on commit 9c24aff

Please sign in to comment.