mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 20:09:23 +00:00
close button on desktop exchange step 4
This commit is contained in:
parent
d86f0de130
commit
93e44a4475
1 changed files with 26 additions and 7 deletions
|
@ -3,6 +3,7 @@ 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';
|
||||||
|
import 'package:stackwallet/widgets/desktop/desktop_dialog_close_button.dart';
|
||||||
|
|
||||||
class StepScaffold extends StatefulWidget {
|
class StepScaffold extends StatefulWidget {
|
||||||
const StepScaffold({
|
const StepScaffold({
|
||||||
|
@ -37,15 +38,33 @@ class _StepScaffoldState extends State<StepScaffold> {
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Row(
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
const AppBarBackButton(
|
Row(
|
||||||
isCompact: true,
|
children: [
|
||||||
iconSize: 23,
|
currentStep != 4
|
||||||
),
|
? const AppBarBackButton(
|
||||||
Text(
|
isCompact: true,
|
||||||
"Exchange ${model.sendTicker.toUpperCase()} to ${model.receiveTicker.toUpperCase()}",
|
iconSize: 23,
|
||||||
style: STextStyles.desktopH3(context),
|
)
|
||||||
|
: const SizedBox(
|
||||||
|
width: 32,
|
||||||
|
),
|
||||||
|
Text(
|
||||||
|
"Exchange ${model.sendTicker.toUpperCase()} to ${model.receiveTicker.toUpperCase()}",
|
||||||
|
style: STextStyles.desktopH3(context),
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
|
if (currentStep == 4)
|
||||||
|
DesktopDialogCloseButton(
|
||||||
|
onPressedOverride: () {
|
||||||
|
Navigator.of(context, rootNavigator: true).pop();
|
||||||
|
Navigator.of(context, rootNavigator: true).pop();
|
||||||
|
Navigator.of(context, rootNavigator: true).pop();
|
||||||
|
Navigator.of(context, rootNavigator: true).pop();
|
||||||
|
},
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
|
|
Loading…
Reference in a new issue