Skip to content

Commit 46334f1

Browse files
authored
Merge pull request #1699 from SatoshiPortal/fix-open-system-keyboard-price-input
fix: PriceInput opens the system DialPad
2 parents e91b31e + 2d4fb1f commit 46334f1

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lib/core/widgets/price_input/price_input.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import 'package:bb_mobile/core/settings/domain/settings_entity.dart';
12
import 'package:bb_mobile/core/themes/app_theme.dart';
23
import 'package:bb_mobile/core/utils/constants.dart';
34
import 'package:bb_mobile/core/widgets/bottom_sheet/x.dart';
@@ -67,7 +68,11 @@ class PriceInput extends StatelessWidget {
6768
: TextField(
6869
controller: amountController,
6970
focusNode: focusNode,
70-
keyboardType: TextInputType.none,
71+
keyboardType: TextInputType.numberWithOptions(
72+
signed: true,
73+
// We could pass the bitcoin unit to restrict the system DialPad
74+
// decimal: true
75+
),
7176
inputFormatters: [AmountInputFormatter(currency)],
7277
showCursor: !readOnly,
7378
readOnly: readOnly,

0 commit comments

Comments
 (0)