mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-23 02:54:30 +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,
|
maxHeight: double.infinity,
|
||||||
child: StepScaffold(
|
child: StepScaffold(
|
||||||
step: 2,
|
step: 2,
|
||||||
|
model: model,
|
||||||
body: DesktopStep2(
|
body: DesktopStep2(
|
||||||
model: model,
|
model: model,
|
||||||
),
|
),
|
||||||
|
@ -1057,6 +1058,7 @@ class _ExchangeFormState extends ConsumerState<ExchangeForm> {
|
||||||
maxHeight: double.infinity,
|
maxHeight: double.infinity,
|
||||||
child: StepScaffold(
|
child: StepScaffold(
|
||||||
step: 1,
|
step: 1,
|
||||||
|
model: model,
|
||||||
body: DesktopStep1(
|
body: DesktopStep1(
|
||||||
model: model,
|
model: model,
|
||||||
),
|
),
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import 'package:flutter/material.dart';
|
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/pages_desktop_specific/desktop_exchange/subwidgets/desktop_exchange_steps_indicator.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
|
@ -8,10 +9,12 @@ class StepScaffold extends StatefulWidget {
|
||||||
Key? key,
|
Key? key,
|
||||||
required this.body,
|
required this.body,
|
||||||
required this.step,
|
required this.step,
|
||||||
|
required this.model,
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
|
|
||||||
final Widget body;
|
final Widget body;
|
||||||
final int step;
|
final int step;
|
||||||
|
final IncompleteExchangeModel model;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<StepScaffold> createState() => _StepScaffoldState();
|
State<StepScaffold> createState() => _StepScaffoldState();
|
||||||
|
@ -19,10 +22,12 @@ class StepScaffold extends StatefulWidget {
|
||||||
|
|
||||||
class _StepScaffoldState extends State<StepScaffold> {
|
class _StepScaffoldState extends State<StepScaffold> {
|
||||||
int currentStep = 0;
|
int currentStep = 0;
|
||||||
|
late final IncompleteExchangeModel model;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
currentStep = widget.step;
|
currentStep = widget.step;
|
||||||
|
model = widget.model;
|
||||||
super.initState();
|
super.initState();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,7 +43,7 @@ class _StepScaffoldState extends State<StepScaffold> {
|
||||||
iconSize: 23,
|
iconSize: 23,
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
"Exchange XXX to XXX",
|
"Exchange ${model.sendTicker.toUpperCase()} to ${model.receiveTicker.toUpperCase()}",
|
||||||
style: STextStyles.desktopH3(context),
|
style: STextStyles.desktopH3(context),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue