Skip to content

Commit

Permalink
remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
Merculiar committed Jan 3, 2025
1 parent ea517ca commit 128ea8a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Decimal?> 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<TokenSendConfirmationScreen> createState() => _ScreenState();
Expand Down Expand Up @@ -139,7 +131,7 @@ class _ScreenState extends State<TokenSendConfirmationScreen> {
AmountWithEquivalent(
inputController: _amountController,
token: widget.token,
collapsed: widget.isEnabled,
collapsed: false,
backgroundColor: CpColors.deepGreyColor,
),
const SizedBox(height: 72),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ class _TokenSendInputScreenState extends State<TokenSendInputScreen> {
context,
token: widget.token,
initialAmount: _quantityController.text,
isEnabled: false,
recipient: recipient,
);

Expand Down

0 comments on commit 128ea8a

Please sign in to comment.