From 128ea8a376a936d9875cdb30da9ca3f930a8886f Mon Sep 17 00:00:00 2001 From: Vlad Sumin Date: Fri, 3 Jan 2025 17:08:10 +0200 Subject: [PATCH] remove redundant code --- .../screens/token_send_confirmation_screen.dart | 10 +--------- .../token_send/screens/token_send_input_screen.dart | 1 - 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/packages/espressocash_app/lib/features/token_send/screens/token_send_confirmation_screen.dart b/packages/espressocash_app/lib/features/token_send/screens/token_send_confirmation_screen.dart index 29bfdb3d8..52e684c36 100644 --- a/packages/espressocash_app/lib/features/token_send/screens/token_send_confirmation_screen.dart +++ b/packages/espressocash_app/lib/features/token_send/screens/token_send_confirmation_screen.dart @@ -22,36 +22,28 @@ class TokenSendConfirmationScreen extends StatefulWidget { super.key, required this.initialAmount, required this.recipient, - required this.label, required this.token, - this.isEnabled = true, }); static Future push( BuildContext context, { required String initialAmount, required Ed25519HDPublicKey recipient, - String? label, required Token token, - required bool isEnabled, }) => Navigator.of(context).push( MaterialPageRoute( builder: (context) => TokenSendConfirmationScreen( initialAmount: initialAmount, recipient: recipient, - label: label, token: token, - isEnabled: isEnabled, ), ), ); final String initialAmount; final Ed25519HDPublicKey recipient; - final String? label; final Token token; - final bool isEnabled; @override State createState() => _ScreenState(); @@ -139,7 +131,7 @@ class _ScreenState extends State { AmountWithEquivalent( inputController: _amountController, token: widget.token, - collapsed: widget.isEnabled, + collapsed: false, backgroundColor: CpColors.deepGreyColor, ), const SizedBox(height: 72), diff --git a/packages/espressocash_app/lib/features/token_send/screens/token_send_input_screen.dart b/packages/espressocash_app/lib/features/token_send/screens/token_send_input_screen.dart index 9104d885a..b347b5182 100644 --- a/packages/espressocash_app/lib/features/token_send/screens/token_send_input_screen.dart +++ b/packages/espressocash_app/lib/features/token_send/screens/token_send_input_screen.dart @@ -85,7 +85,6 @@ class _TokenSendInputScreenState extends State { context, token: widget.token, initialAmount: _quantityController.text, - isEnabled: false, recipient: recipient, );