Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/src/secure_keyboard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ class SecureKeyboard extends StatefulWidget {
/// Default value is `const Color(0xFF1C7CDC)`.
final Color doneKeyColor;

/// jimmy 추가
/// dony key text color
final Color doneKeyTextColor;

/// The key color when the shift action key is activated.
/// If the value is null, `doneKeyColor` is used.
final Color? activatedKeyColor;
Expand Down Expand Up @@ -198,6 +202,7 @@ class SecureKeyboard extends StatefulWidget {
this.stringKeyColor = kKeyboardDefaultStringKeyColor,
this.actionKeyColor = kKeyboardDefaultActionKeyColor,
this.doneKeyColor = kKeyboardDefaultDoneKeyColor,
this.doneKeyTextColor = Colors.white,
this.activatedKeyColor,
this.keyTextStyle = kKeyboardDefaultKeyTextStyle,
this.inputTextStyle = kKeyboardDefaultInputTextStyle,
Expand Down Expand Up @@ -569,7 +574,7 @@ class _SecureKeyboardState extends State<SecureKeyboard> {
if (keyText == null || keyText.isEmpty) {
keyText = (Platform.localeName == 'ko_KR') ? '입력완료' : 'Done';
}
keyData = Text(keyText, style: widget.keyTextStyle);
keyData = Text(keyText, style: widget.keyTextStyle.copyWith(color: widget.doneKeyTextColor),);
break;
case SecureKeyboardKeyAction.SPECIAL_CHARACTERS:
keyData = Text(
Expand Down
6 changes: 6 additions & 0 deletions lib/src/with_secure_keyboard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ class WithSecureKeyboard extends StatefulWidget {
/// Default value is `const Color(0xFF1C7CDC)`.
final Color doneKeyColor;

/// jimmy 추가
/// dony key text color
final Color doneKeyTextColor;

/// The key color when the shift action key is activated.
/// If the value is null, `doneKeyColor` is used.
final Color? activatedKeyColor;
Expand All @@ -76,6 +80,7 @@ class WithSecureKeyboard extends StatefulWidget {
this.stringKeyColor = kKeyboardDefaultStringKeyColor,
this.actionKeyColor = kKeyboardDefaultActionKeyColor,
this.doneKeyColor = kKeyboardDefaultDoneKeyColor,
this.doneKeyTextColor = Colors.white,
this.activatedKeyColor,
this.keyTextStyle = kKeyboardDefaultKeyTextStyle,
this.inputTextStyle = kKeyboardDefaultInputTextStyle,
Expand Down Expand Up @@ -221,6 +226,7 @@ class _WithSecureKeyboardState extends State<WithSecureKeyboard> {
stringKeyColor: widget.stringKeyColor,
actionKeyColor: widget.actionKeyColor,
doneKeyColor: widget.doneKeyColor,
doneKeyTextColor: widget.doneKeyTextColor,
activatedKeyColor: widget.activatedKeyColor,
keyTextStyle: widget.keyTextStyle,
inputTextStyle: widget.inputTextStyle,
Expand Down