mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-25 11:45:59 +00:00
mobile fusion port digits only filter and rounded textfields
This commit is contained in:
parent
cfa4a46fee
commit
6c993e6cbc
1 changed files with 33 additions and 19 deletions
|
@ -9,6 +9,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter_native_splash/cli_commands.dart';
|
import 'package:flutter_native_splash/cli_commands.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:flutter_svg/svg.dart';
|
import 'package:flutter_svg/svg.dart';
|
||||||
|
@ -17,6 +18,7 @@ import 'package:stackwallet/providers/global/wallets_provider.dart';
|
||||||
import 'package:stackwallet/services/mixins/fusion_wallet_interface.dart';
|
import 'package:stackwallet/services/mixins/fusion_wallet_interface.dart';
|
||||||
import 'package:stackwallet/themes/stack_colors.dart';
|
import 'package:stackwallet/themes/stack_colors.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/widgets/background.dart';
|
import 'package:stackwallet/widgets/background.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
|
@ -145,7 +147,11 @@ class _CashFusionViewState extends ConsumerState<CashFusionView> {
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 12,
|
height: 12,
|
||||||
),
|
),
|
||||||
TextField(
|
ClipRRect(
|
||||||
|
borderRadius: BorderRadius.circular(
|
||||||
|
Constants.size.circularBorderRadius,
|
||||||
|
),
|
||||||
|
child: TextField(
|
||||||
autocorrect: false,
|
autocorrect: false,
|
||||||
enableSuggestions: false,
|
enableSuggestions: false,
|
||||||
controller: serverController,
|
controller: serverController,
|
||||||
|
@ -161,28 +167,36 @@ class _CashFusionViewState extends ConsumerState<CashFusionView> {
|
||||||
serverFocusNode,
|
serverFocusNode,
|
||||||
context,
|
context,
|
||||||
desktopMed: true,
|
desktopMed: true,
|
||||||
)
|
|
||||||
// .copyWith(labelStyle: ),
|
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 10,
|
height: 10,
|
||||||
),
|
),
|
||||||
TextField(
|
ClipRRect(
|
||||||
autocorrect: false,
|
borderRadius: BorderRadius.circular(
|
||||||
enableSuggestions: false,
|
Constants.size.circularBorderRadius,
|
||||||
controller: portController,
|
),
|
||||||
focusNode: portFocusNode,
|
child: TextField(
|
||||||
onChanged: (value) {
|
autocorrect: false,
|
||||||
setState(() {
|
enableSuggestions: false,
|
||||||
_portTerm = value;
|
controller: portController,
|
||||||
});
|
focusNode: portFocusNode,
|
||||||
},
|
inputFormatters: [
|
||||||
style: STextStyles.field(context),
|
FilteringTextInputFormatter.digitsOnly
|
||||||
decoration: standardInputDecoration(
|
],
|
||||||
"Port",
|
keyboardType: TextInputType.number,
|
||||||
portFocusNode,
|
onChanged: (value) {
|
||||||
context,
|
setState(() {
|
||||||
desktopMed: true,
|
_portTerm = value;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
style: STextStyles.field(context),
|
||||||
|
decoration: standardInputDecoration(
|
||||||
|
"Port",
|
||||||
|
portFocusNode,
|
||||||
|
context,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
|
|
Loading…
Reference in a new issue