mobile fusion port digits only filter and rounded textfields

This commit is contained in:
julian 2023-10-16 14:01:42 -06:00
parent cfa4a46fee
commit 6c993e6cbc

View file

@ -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,17 +167,25 @@ 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(
borderRadius: BorderRadius.circular(
Constants.size.circularBorderRadius,
),
child: TextField(
autocorrect: false, autocorrect: false,
enableSuggestions: false, enableSuggestions: false,
controller: portController, controller: portController,
focusNode: portFocusNode, focusNode: portFocusNode,
inputFormatters: [
FilteringTextInputFormatter.digitsOnly
],
keyboardType: TextInputType.number,
onChanged: (value) { onChanged: (value) {
setState(() { setState(() {
_portTerm = value; _portTerm = value;
@ -182,7 +196,7 @@ class _CashFusionViewState extends ConsumerState<CashFusionView> {
"Port", "Port",
portFocusNode, portFocusNode,
context, context,
desktopMed: true, ),
), ),
), ),
const SizedBox( const SizedBox(