mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +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/utilities/text_styles.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 {
|
||||
const StepScaffold({
|
||||
|
@ -37,15 +38,33 @@ class _StepScaffoldState extends State<StepScaffold> {
|
|||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
const AppBarBackButton(
|
||||
isCompact: true,
|
||||
iconSize: 23,
|
||||
),
|
||||
Text(
|
||||
"Exchange ${model.sendTicker.toUpperCase()} to ${model.receiveTicker.toUpperCase()}",
|
||||
style: STextStyles.desktopH3(context),
|
||||
Row(
|
||||
children: [
|
||||
currentStep != 4
|
||||
? const AppBarBackButton(
|
||||
isCompact: true,
|
||||
iconSize: 23,
|
||||
)
|
||||
: 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(
|
||||
|
|
Loading…
Reference in a new issue