mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
remove suggestions and autocomplete for desktop
This commit is contained in:
parent
fba7fbf1cc
commit
c231758902
27 changed files with 134 additions and 5 deletions
|
@ -90,6 +90,8 @@ class _AddWalletViewState extends State<AddWalletView> {
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
controller: _searchFieldController,
|
controller: _searchFieldController,
|
||||||
focusNode: _searchFocusNode,
|
focusNode: _searchFocusNode,
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
|
|
|
@ -194,6 +194,8 @@ class _NameYourWalletViewState extends ConsumerState<NameYourWalletView> {
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
onChanged: (string) {
|
onChanged: (string) {
|
||||||
if (string.isEmpty) {
|
if (string.isEmpty) {
|
||||||
if (_nextEnabled) {
|
if (_nextEnabled) {
|
||||||
|
|
|
@ -7,6 +7,8 @@ import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
|
|
||||||
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
||||||
class MobileMnemonicLengthSelector extends ConsumerWidget {
|
class MobileMnemonicLengthSelector extends ConsumerWidget {
|
||||||
const MobileMnemonicLengthSelector({
|
const MobileMnemonicLengthSelector({
|
||||||
Key? key,
|
Key? key,
|
||||||
|
@ -19,7 +21,9 @@ class MobileMnemonicLengthSelector extends ConsumerWidget {
|
||||||
Widget build(BuildContext context, WidgetRef ref) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
return Stack(
|
return Stack(
|
||||||
children: [
|
children: [
|
||||||
const TextField(
|
TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
// controller: _lengthController,
|
// controller: _lengthController,
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
textInputAction: TextInputAction.none,
|
textInputAction: TextInputAction.none,
|
||||||
|
|
|
@ -4,6 +4,8 @@ import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
|
|
||||||
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
||||||
class RestoreFromDatePicker extends StatefulWidget {
|
class RestoreFromDatePicker extends StatefulWidget {
|
||||||
const RestoreFromDatePicker({Key? key, required this.onTap})
|
const RestoreFromDatePicker({Key? key, required this.onTap})
|
||||||
: super(key: key);
|
: super(key: key);
|
||||||
|
@ -37,6 +39,8 @@ class _RestoreFromDatePickerState extends State<RestoreFromDatePicker> {
|
||||||
return Container(
|
return Container(
|
||||||
color: Colors.transparent,
|
color: Colors.transparent,
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
onTap: onTap,
|
onTap: onTap,
|
||||||
controller: _dateController,
|
controller: _dateController,
|
||||||
style: STextStyles.field(context),
|
style: STextStyles.field(context),
|
||||||
|
|
|
@ -21,6 +21,8 @@ import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
import 'package:stackwallet/widgets/stack_text_field.dart';
|
import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||||
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
||||||
|
|
||||||
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
||||||
class AddressBookView extends ConsumerStatefulWidget {
|
class AddressBookView extends ConsumerStatefulWidget {
|
||||||
const AddressBookView({Key? key, this.coin}) : super(key: key);
|
const AddressBookView({Key? key, this.coin}) : super(key: key);
|
||||||
|
|
||||||
|
@ -198,6 +200,8 @@ class _AddressBookViewState extends ConsumerState<AddressBookView> {
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
controller: _searchController,
|
controller: _searchController,
|
||||||
focusNode: _searchFocusNode,
|
focusNode: _searchFocusNode,
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
|
|
|
@ -22,6 +22,8 @@ import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
||||||
import 'package:stackwallet/widgets/stack_text_field.dart';
|
import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||||
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
||||||
|
|
||||||
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
||||||
class AddAddressBookEntryView extends ConsumerStatefulWidget {
|
class AddAddressBookEntryView extends ConsumerStatefulWidget {
|
||||||
const AddAddressBookEntryView({
|
const AddAddressBookEntryView({
|
||||||
Key? key,
|
Key? key,
|
||||||
|
@ -279,6 +281,8 @@ class _AddAddressBookEntryViewState
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
controller: nameController,
|
controller: nameController,
|
||||||
focusNode: nameFocusNode,
|
focusNode: nameFocusNode,
|
||||||
style: STextStyles.field(context),
|
style: STextStyles.field(context),
|
||||||
|
|
|
@ -13,6 +13,8 @@ import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
||||||
import 'package:stackwallet/widgets/stack_text_field.dart';
|
import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||||
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
||||||
|
|
||||||
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
||||||
class EditContactNameEmojiView extends ConsumerStatefulWidget {
|
class EditContactNameEmojiView extends ConsumerStatefulWidget {
|
||||||
const EditContactNameEmojiView({
|
const EditContactNameEmojiView({
|
||||||
Key? key,
|
Key? key,
|
||||||
|
@ -200,6 +202,8 @@ class _EditContactNameEmojiViewState
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
controller: nameController,
|
controller: nameController,
|
||||||
focusNode: nameFocusNode,
|
focusNode: nameFocusNode,
|
||||||
style: STextStyles.field(context),
|
style: STextStyles.field(context),
|
||||||
|
|
|
@ -20,6 +20,8 @@ import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
||||||
import 'package:stackwallet/widgets/stack_text_field.dart';
|
import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||||
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
||||||
|
|
||||||
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
||||||
class NewContactAddressEntryForm extends ConsumerStatefulWidget {
|
class NewContactAddressEntryForm extends ConsumerStatefulWidget {
|
||||||
const NewContactAddressEntryForm({
|
const NewContactAddressEntryForm({
|
||||||
Key? key,
|
Key? key,
|
||||||
|
@ -71,6 +73,8 @@ class _NewContactAddressEntryFormState
|
||||||
return Column(
|
return Column(
|
||||||
children: [
|
children: [
|
||||||
TextField(
|
TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
style: STextStyles.field(context),
|
style: STextStyles.field(context),
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
|
@ -154,6 +158,8 @@ class _NewContactAddressEntryFormState
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
focusNode: addressLabelFocusNode,
|
focusNode: addressLabelFocusNode,
|
||||||
controller: addressLabelController,
|
controller: addressLabelController,
|
||||||
style: STextStyles.field(context),
|
style: STextStyles.field(context),
|
||||||
|
@ -197,6 +203,7 @@ class _NewContactAddressEntryFormState
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
focusNode: addressFocusNode,
|
focusNode: addressFocusNode,
|
||||||
controller: addressController,
|
controller: addressController,
|
||||||
style: STextStyles.field(context),
|
style: STextStyles.field(context),
|
||||||
|
@ -324,7 +331,6 @@ class _NewContactAddressEntryFormState
|
||||||
key: const Key("addAddressBookEntryViewAddressField"),
|
key: const Key("addAddressBookEntryViewAddressField"),
|
||||||
readOnly: false,
|
readOnly: false,
|
||||||
autocorrect: false,
|
autocorrect: false,
|
||||||
enableSuggestions: false,
|
|
||||||
// inputFormatters: <TextInputFormatter>[
|
// inputFormatters: <TextInputFormatter>[
|
||||||
// FilteringTextInputFormatter.allow(RegExp("[a-zA-Z0-9]{34}")),
|
// FilteringTextInputFormatter.allow(RegExp("[a-zA-Z0-9]{34}")),
|
||||||
// ],
|
// ],
|
||||||
|
|
|
@ -9,6 +9,8 @@ import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
||||||
import 'package:stackwallet/widgets/stack_text_field.dart';
|
import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||||
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
||||||
|
|
||||||
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
||||||
class EditTradeNoteView extends ConsumerStatefulWidget {
|
class EditTradeNoteView extends ConsumerStatefulWidget {
|
||||||
const EditTradeNoteView({
|
const EditTradeNoteView({
|
||||||
Key? key,
|
Key? key,
|
||||||
|
@ -85,6 +87,8 @@ class _EditNoteViewState extends ConsumerState<EditTradeNoteView> {
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
controller: _noteController,
|
controller: _noteController,
|
||||||
style: STextStyles.field(context),
|
style: STextStyles.field(context),
|
||||||
focusNode: noteFieldFocusNode,
|
focusNode: noteFieldFocusNode,
|
||||||
|
|
|
@ -16,6 +16,8 @@ import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||||
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
||||||
import 'package:tuple/tuple.dart';
|
import 'package:tuple/tuple.dart';
|
||||||
|
|
||||||
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
||||||
class FixedRateMarketPairCoinSelectionView extends ConsumerStatefulWidget {
|
class FixedRateMarketPairCoinSelectionView extends ConsumerStatefulWidget {
|
||||||
const FixedRateMarketPairCoinSelectionView({
|
const FixedRateMarketPairCoinSelectionView({
|
||||||
Key? key,
|
Key? key,
|
||||||
|
@ -152,6 +154,8 @@ class _FixedRateMarketPairCoinSelectionViewState
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
controller: _searchController,
|
controller: _searchController,
|
||||||
focusNode: _searchFocusNode,
|
focusNode: _searchFocusNode,
|
||||||
onChanged: filter,
|
onChanged: filter,
|
||||||
|
|
|
@ -13,6 +13,8 @@ import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
import 'package:stackwallet/widgets/stack_text_field.dart';
|
import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||||
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
||||||
|
|
||||||
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
||||||
class FloatingRateCurrencySelectionView extends StatefulWidget {
|
class FloatingRateCurrencySelectionView extends StatefulWidget {
|
||||||
const FloatingRateCurrencySelectionView({
|
const FloatingRateCurrencySelectionView({
|
||||||
Key? key,
|
Key? key,
|
||||||
|
@ -108,6 +110,8 @@ class _FloatingRateCurrencySelectionViewState
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
controller: _searchController,
|
controller: _searchController,
|
||||||
focusNode: _searchFocusNode,
|
focusNode: _searchFocusNode,
|
||||||
onChanged: filter,
|
onChanged: filter,
|
||||||
|
|
|
@ -19,6 +19,7 @@ import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/logger.dart';
|
import 'package:stackwallet/utilities/logger.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
@ -160,6 +161,8 @@ class _GenerateUriQrCodeViewState extends State<GenerateUriQrCodeView> {
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
controller: amountController,
|
controller: amountController,
|
||||||
focusNode: _amountFocusNode,
|
focusNode: _amountFocusNode,
|
||||||
style: STextStyles.field(context),
|
style: STextStyles.field(context),
|
||||||
|
@ -209,6 +212,8 @@ class _GenerateUriQrCodeViewState extends State<GenerateUriQrCodeView> {
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
controller: noteController,
|
controller: noteController,
|
||||||
focusNode: _noteFocusNode,
|
focusNode: _noteFocusNode,
|
||||||
style: STextStyles.field(context),
|
style: STextStyles.field(context),
|
||||||
|
|
|
@ -41,6 +41,8 @@ import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
import 'package:stackwallet/widgets/stack_text_field.dart';
|
import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||||
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
||||||
|
|
||||||
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
||||||
class SendView extends ConsumerStatefulWidget {
|
class SendView extends ConsumerStatefulWidget {
|
||||||
const SendView({
|
const SendView({
|
||||||
Key? key,
|
Key? key,
|
||||||
|
@ -885,7 +887,10 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
if (coin == Coin.firo)
|
if (coin == Coin.firo)
|
||||||
Stack(
|
Stack(
|
||||||
children: [
|
children: [
|
||||||
const TextField(
|
TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions:
|
||||||
|
Util.isDesktop ? false : true,
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
textInputAction: TextInputAction.none,
|
textInputAction: TextInputAction.none,
|
||||||
),
|
),
|
||||||
|
@ -1061,6 +1066,8 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
height: 8,
|
height: 8,
|
||||||
),
|
),
|
||||||
TextField(
|
TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
style: STextStyles.smallMed14(context).copyWith(
|
style: STextStyles.smallMed14(context).copyWith(
|
||||||
color: Theme.of(context)
|
color: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
|
@ -1114,6 +1121,8 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
),
|
),
|
||||||
if (Prefs.instance.externalCalls)
|
if (Prefs.instance.externalCalls)
|
||||||
TextField(
|
TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
style: STextStyles.smallMed14(context).copyWith(
|
style: STextStyles.smallMed14(context).copyWith(
|
||||||
color: Theme.of(context)
|
color: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
|
@ -1238,6 +1247,8 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
controller: noteController,
|
controller: noteController,
|
||||||
focusNode: _noteFocusNode,
|
focusNode: _noteFocusNode,
|
||||||
style: STextStyles.field(context),
|
style: STextStyles.field(context),
|
||||||
|
@ -1283,6 +1294,8 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
Stack(
|
Stack(
|
||||||
children: [
|
children: [
|
||||||
TextField(
|
TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
controller: feeController,
|
controller: feeController,
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
textInputAction: TextInputAction.none,
|
textInputAction: TextInputAction.none,
|
||||||
|
|
|
@ -25,6 +25,8 @@ import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
import 'package:stackwallet/widgets/stack_text_field.dart';
|
import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||||
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
||||||
|
|
||||||
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
||||||
class DebugView extends ConsumerStatefulWidget {
|
class DebugView extends ConsumerStatefulWidget {
|
||||||
const DebugView({Key? key}) : super(key: key);
|
const DebugView({Key? key}) : super(key: key);
|
||||||
|
|
||||||
|
@ -217,6 +219,8 @@ class _DebugViewState extends ConsumerState<DebugView> {
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
controller: _searchController,
|
controller: _searchController,
|
||||||
focusNode: _searchFocusNode,
|
focusNode: _searchFocusNode,
|
||||||
onChanged: (newString) {
|
onChanged: (newString) {
|
||||||
|
|
|
@ -13,6 +13,8 @@ import 'package:stackwallet/widgets/rounded_container.dart';
|
||||||
import 'package:stackwallet/widgets/stack_text_field.dart';
|
import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||||
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
||||||
|
|
||||||
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
||||||
class BaseCurrencySettingsView extends ConsumerStatefulWidget {
|
class BaseCurrencySettingsView extends ConsumerStatefulWidget {
|
||||||
const BaseCurrencySettingsView({Key? key}) : super(key: key);
|
const BaseCurrencySettingsView({Key? key}) : super(key: key);
|
||||||
|
|
||||||
|
@ -140,6 +142,8 @@ class _CurrencyViewState extends ConsumerState<BaseCurrencySettingsView> {
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
controller: _searchController,
|
controller: _searchController,
|
||||||
focusNode: _searchFocusNode,
|
focusNode: _searchFocusNode,
|
||||||
onChanged: (newString) {
|
onChanged: (newString) {
|
||||||
|
|
|
@ -13,6 +13,8 @@ import 'package:stackwallet/widgets/rounded_container.dart';
|
||||||
import 'package:stackwallet/widgets/stack_text_field.dart';
|
import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||||
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
||||||
|
|
||||||
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
||||||
class LanguageSettingsView extends ConsumerStatefulWidget {
|
class LanguageSettingsView extends ConsumerStatefulWidget {
|
||||||
const LanguageSettingsView({Key? key}) : super(key: key);
|
const LanguageSettingsView({Key? key}) : super(key: key);
|
||||||
|
|
||||||
|
@ -138,6 +140,8 @@ class _LanguageViewState extends ConsumerState<LanguageSettingsView> {
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
controller: _searchController,
|
controller: _searchController,
|
||||||
focusNode: _searchFocusNode,
|
focusNode: _searchFocusNode,
|
||||||
onChanged: (newString) {
|
onChanged: (newString) {
|
||||||
|
|
|
@ -27,6 +27,8 @@ import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||||
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
||||||
import 'package:uuid/uuid.dart';
|
import 'package:uuid/uuid.dart';
|
||||||
|
|
||||||
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
||||||
enum AddEditNodeViewType { add, edit }
|
enum AddEditNodeViewType { add, edit }
|
||||||
|
|
||||||
class AddEditNodeView extends ConsumerStatefulWidget {
|
class AddEditNodeView extends ConsumerStatefulWidget {
|
||||||
|
@ -648,6 +650,8 @@ class _NodeFormState extends ConsumerState<NodeForm> {
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
key: const Key("addCustomNodeNodeNameFieldKey"),
|
key: const Key("addCustomNodeNodeNameFieldKey"),
|
||||||
readOnly: widget.readOnly,
|
readOnly: widget.readOnly,
|
||||||
enabled: enableField(_nameController),
|
enabled: enableField(_nameController),
|
||||||
|
@ -695,6 +699,8 @@ class _NodeFormState extends ConsumerState<NodeForm> {
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
key: const Key("addCustomNodeNodeAddressFieldKey"),
|
key: const Key("addCustomNodeNodeAddressFieldKey"),
|
||||||
readOnly: widget.readOnly,
|
readOnly: widget.readOnly,
|
||||||
enabled: enableField(_hostController),
|
enabled: enableField(_hostController),
|
||||||
|
@ -746,6 +752,8 @@ class _NodeFormState extends ConsumerState<NodeForm> {
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
key: const Key("addCustomNodeNodePortFieldKey"),
|
key: const Key("addCustomNodeNodePortFieldKey"),
|
||||||
readOnly: widget.readOnly,
|
readOnly: widget.readOnly,
|
||||||
enabled: enableField(_portController),
|
enabled: enableField(_portController),
|
||||||
|
@ -797,6 +805,8 @@ class _NodeFormState extends ConsumerState<NodeForm> {
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
controller: _usernameController,
|
controller: _usernameController,
|
||||||
readOnly: widget.readOnly,
|
readOnly: widget.readOnly,
|
||||||
enabled: enableField(_usernameController),
|
enabled: enableField(_usernameController),
|
||||||
|
@ -844,6 +854,8 @@ class _NodeFormState extends ConsumerState<NodeForm> {
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
controller: _passwordController,
|
controller: _passwordController,
|
||||||
readOnly: widget.readOnly,
|
readOnly: widget.readOnly,
|
||||||
enabled: enableField(_passwordController),
|
enabled: enableField(_passwordController),
|
||||||
|
|
|
@ -19,6 +19,8 @@ import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
import 'package:stackwallet/widgets/stack_text_field.dart';
|
import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||||
import 'package:url_launcher/url_launcher.dart';
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
|
|
||||||
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
||||||
class AutoBackupView extends ConsumerStatefulWidget {
|
class AutoBackupView extends ConsumerStatefulWidget {
|
||||||
const AutoBackupView({Key? key}) : super(key: key);
|
const AutoBackupView({Key? key}) : super(key: key);
|
||||||
|
|
||||||
|
@ -423,6 +425,8 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
|
||||||
height: 10,
|
height: 10,
|
||||||
),
|
),
|
||||||
TextField(
|
TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
key: const Key("backupFrequencyFieldKey"),
|
key: const Key("backupFrequencyFieldKey"),
|
||||||
controller: frequencyController,
|
controller: frequencyController,
|
||||||
enabled: false,
|
enabled: false,
|
||||||
|
|
|
@ -27,6 +27,8 @@ import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
import 'package:stackwallet/widgets/stack_text_field.dart';
|
import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||||
import 'package:zxcvbn/zxcvbn.dart';
|
import 'package:zxcvbn/zxcvbn.dart';
|
||||||
|
|
||||||
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
||||||
class CreateAutoBackupView extends ConsumerStatefulWidget {
|
class CreateAutoBackupView extends ConsumerStatefulWidget {
|
||||||
const CreateAutoBackupView({
|
const CreateAutoBackupView({
|
||||||
Key? key,
|
Key? key,
|
||||||
|
@ -146,6 +148,8 @@ class _EnableAutoBackupViewState extends ConsumerState<CreateAutoBackupView> {
|
||||||
),
|
),
|
||||||
if (!Platform.isAndroid)
|
if (!Platform.isAndroid)
|
||||||
TextField(
|
TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
onTap: Platform.isAndroid
|
onTap: Platform.isAndroid
|
||||||
? null
|
? null
|
||||||
: () async {
|
: () async {
|
||||||
|
@ -411,7 +415,9 @@ class _EnableAutoBackupViewState extends ConsumerState<CreateAutoBackupView> {
|
||||||
),
|
),
|
||||||
Stack(
|
Stack(
|
||||||
children: [
|
children: [
|
||||||
const TextField(
|
TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
textInputAction: TextInputAction.none,
|
textInputAction: TextInputAction.none,
|
||||||
),
|
),
|
||||||
|
|
|
@ -14,6 +14,7 @@ import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/logger.dart';
|
import 'package:stackwallet/utilities/logger.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/progress_bar.dart';
|
import 'package:stackwallet/widgets/progress_bar.dart';
|
||||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
|
@ -129,6 +130,8 @@ class _RestoreFromFileViewState extends State<CreateBackupView> {
|
||||||
return Container(
|
return Container(
|
||||||
color: Colors.transparent,
|
color: Colors.transparent,
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
onTap: Platform.isAndroid
|
onTap: Platform.isAndroid
|
||||||
? null
|
? null
|
||||||
: () async {
|
: () async {
|
||||||
|
|
|
@ -27,6 +27,8 @@ import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
import 'package:stackwallet/widgets/stack_text_field.dart';
|
import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||||
import 'package:zxcvbn/zxcvbn.dart';
|
import 'package:zxcvbn/zxcvbn.dart';
|
||||||
|
|
||||||
|
import '../../../../utilities/util.dart';
|
||||||
|
|
||||||
class EditAutoBackupView extends ConsumerStatefulWidget {
|
class EditAutoBackupView extends ConsumerStatefulWidget {
|
||||||
const EditAutoBackupView({
|
const EditAutoBackupView({
|
||||||
Key? key,
|
Key? key,
|
||||||
|
@ -148,6 +150,8 @@ class _EditAutoBackupViewState extends ConsumerState<EditAutoBackupView> {
|
||||||
),
|
),
|
||||||
if (!Platform.isAndroid)
|
if (!Platform.isAndroid)
|
||||||
TextField(
|
TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
onTap: Platform.isAndroid
|
onTap: Platform.isAndroid
|
||||||
? null
|
? null
|
||||||
: () async {
|
: () async {
|
||||||
|
@ -413,7 +417,9 @@ class _EditAutoBackupViewState extends ConsumerState<EditAutoBackupView> {
|
||||||
),
|
),
|
||||||
Stack(
|
Stack(
|
||||||
children: [
|
children: [
|
||||||
const TextField(
|
TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
textInputAction: TextInputAction.none,
|
textInputAction: TextInputAction.none,
|
||||||
),
|
),
|
||||||
|
|
|
@ -20,6 +20,8 @@ import 'package:stackwallet/widgets/loading_indicator.dart';
|
||||||
import 'package:stackwallet/widgets/stack_text_field.dart';
|
import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||||
import 'package:tuple/tuple.dart';
|
import 'package:tuple/tuple.dart';
|
||||||
|
|
||||||
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
||||||
class RestoreFromFileView extends ConsumerStatefulWidget {
|
class RestoreFromFileView extends ConsumerStatefulWidget {
|
||||||
const RestoreFromFileView({Key? key}) : super(key: key);
|
const RestoreFromFileView({Key? key}) : super(key: key);
|
||||||
|
|
||||||
|
@ -96,6 +98,8 @@ class _RestoreFromFileViewState extends ConsumerState<RestoreFromFileView> {
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: [
|
children: [
|
||||||
TextField(
|
TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
try {
|
try {
|
||||||
await stackFileSystem.prepareStorage();
|
await stackFileSystem.prepareStorage();
|
||||||
|
|
|
@ -30,6 +30,8 @@ import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
import 'package:tuple/tuple.dart';
|
import 'package:tuple/tuple.dart';
|
||||||
|
|
||||||
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
||||||
/// [eventBus] should only be set during testing
|
/// [eventBus] should only be set during testing
|
||||||
class WalletSettingsView extends StatefulWidget {
|
class WalletSettingsView extends StatefulWidget {
|
||||||
const WalletSettingsView({
|
const WalletSettingsView({
|
||||||
|
@ -374,6 +376,8 @@ class _EpiBoxInfoFormState extends ConsumerState<EpicBoxInfoForm> {
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: [
|
children: [
|
||||||
TextField(
|
TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
controller: hostController,
|
controller: hostController,
|
||||||
decoration: const InputDecoration(hintText: "Host"),
|
decoration: const InputDecoration(hintText: "Host"),
|
||||||
),
|
),
|
||||||
|
@ -381,6 +385,8 @@ class _EpiBoxInfoFormState extends ConsumerState<EpicBoxInfoForm> {
|
||||||
height: 8,
|
height: 8,
|
||||||
),
|
),
|
||||||
TextField(
|
TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
controller: portController,
|
controller: portController,
|
||||||
decoration: const InputDecoration(hintText: "Port"),
|
decoration: const InputDecoration(hintText: "Port"),
|
||||||
keyboardType: const TextInputType.numberWithOptions(),
|
keyboardType: const TextInputType.numberWithOptions(),
|
||||||
|
|
|
@ -11,6 +11,8 @@ import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
||||||
import 'package:stackwallet/widgets/stack_text_field.dart';
|
import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||||
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
||||||
|
|
||||||
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
||||||
class RenameWalletView extends ConsumerStatefulWidget {
|
class RenameWalletView extends ConsumerStatefulWidget {
|
||||||
const RenameWalletView({
|
const RenameWalletView({
|
||||||
Key? key,
|
Key? key,
|
||||||
|
@ -74,6 +76,8 @@ class _RenameWalletViewState extends ConsumerState<RenameWalletView> {
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
controller: _controller,
|
controller: _controller,
|
||||||
focusNode: _focusNode,
|
focusNode: _focusNode,
|
||||||
style: STextStyles.field(context),
|
style: STextStyles.field(context),
|
||||||
|
|
|
@ -21,6 +21,8 @@ import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/transaction_card.dart';
|
import 'package:stackwallet/widgets/transaction_card.dart';
|
||||||
import 'package:tuple/tuple.dart';
|
import 'package:tuple/tuple.dart';
|
||||||
|
|
||||||
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
||||||
class AllTransactionsView extends ConsumerStatefulWidget {
|
class AllTransactionsView extends ConsumerStatefulWidget {
|
||||||
const AllTransactionsView({
|
const AllTransactionsView({
|
||||||
Key? key,
|
Key? key,
|
||||||
|
@ -234,6 +236,8 @@ class _TransactionDetailsViewState extends ConsumerState<AllTransactionsView> {
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
controller: _searchController,
|
controller: _searchController,
|
||||||
focusNode: searchFieldFocusNode,
|
focusNode: searchFieldFocusNode,
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
|
|
|
@ -9,6 +9,8 @@ import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
||||||
import 'package:stackwallet/widgets/stack_text_field.dart';
|
import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||||
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
||||||
|
|
||||||
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
||||||
class EditNoteView extends ConsumerStatefulWidget {
|
class EditNoteView extends ConsumerStatefulWidget {
|
||||||
const EditNoteView({
|
const EditNoteView({
|
||||||
Key? key,
|
Key? key,
|
||||||
|
@ -87,6 +89,8 @@ class _EditNoteViewState extends ConsumerState<EditNoteView> {
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
controller: _noteController,
|
controller: _noteController,
|
||||||
style: STextStyles.field(context),
|
style: STextStyles.field(context),
|
||||||
focusNode: noteFieldFocusNode,
|
focusNode: noteFieldFocusNode,
|
||||||
|
|
|
@ -569,6 +569,8 @@ class _TransactionSearchViewState
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
key: const Key("transactionSearchViewAmountFieldKey"),
|
key: const Key("transactionSearchViewAmountFieldKey"),
|
||||||
controller: _amountTextEditingController,
|
controller: _amountTextEditingController,
|
||||||
focusNode: amountTextFieldFocusNode,
|
focusNode: amountTextFieldFocusNode,
|
||||||
|
@ -636,6 +638,8 @@ class _TransactionSearchViewState
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: Util.isDesktop ? false : true,
|
||||||
|
enableSuggestions: Util.isDesktop ? false : true,
|
||||||
key:
|
key:
|
||||||
const Key("transactionSearchViewKeywordFieldKey"),
|
const Key("transactionSearchViewKeywordFieldKey"),
|
||||||
controller: _keywordTextEditingController,
|
controller: _keywordTextEditingController,
|
||||||
|
|
Loading…
Reference in a new issue