mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +00:00
show to and from tickers in exchange steps flow
This commit is contained in:
parent
d06c4862b1
commit
3e9039ac90
2 changed files with 8 additions and 1 deletions
|
@ -1030,6 +1030,7 @@ class _ExchangeFormState extends ConsumerState<ExchangeForm> {
|
|||
maxHeight: double.infinity,
|
||||
child: StepScaffold(
|
||||
step: 2,
|
||||
model: model,
|
||||
body: DesktopStep2(
|
||||
model: model,
|
||||
),
|
||||
|
@ -1057,6 +1058,7 @@ class _ExchangeFormState extends ConsumerState<ExchangeForm> {
|
|||
maxHeight: double.infinity,
|
||||
child: StepScaffold(
|
||||
step: 1,
|
||||
model: model,
|
||||
body: DesktopStep1(
|
||||
model: model,
|
||||
),
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:stackwallet/models/exchange/incomplete_exchange.dart';
|
||||
import 'package:stackwallet/pages_desktop_specific/desktop_exchange/subwidgets/desktop_exchange_steps_indicator.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
|
@ -8,10 +9,12 @@ class StepScaffold extends StatefulWidget {
|
|||
Key? key,
|
||||
required this.body,
|
||||
required this.step,
|
||||
required this.model,
|
||||
}) : super(key: key);
|
||||
|
||||
final Widget body;
|
||||
final int step;
|
||||
final IncompleteExchangeModel model;
|
||||
|
||||
@override
|
||||
State<StepScaffold> createState() => _StepScaffoldState();
|
||||
|
@ -19,10 +22,12 @@ class StepScaffold extends StatefulWidget {
|
|||
|
||||
class _StepScaffoldState extends State<StepScaffold> {
|
||||
int currentStep = 0;
|
||||
late final IncompleteExchangeModel model;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
currentStep = widget.step;
|
||||
model = widget.model;
|
||||
super.initState();
|
||||
}
|
||||
|
||||
|
@ -38,7 +43,7 @@ class _StepScaffoldState extends State<StepScaffold> {
|
|||
iconSize: 23,
|
||||
),
|
||||
Text(
|
||||
"Exchange XXX to XXX",
|
||||
"Exchange ${model.sendTicker.toUpperCase()} to ${model.receiveTicker.toUpperCase()}",
|
||||
style: STextStyles.desktopH3(context),
|
||||
),
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue