mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-03 17:40:43 +00:00
Merge branch 'CW-429-Linux-trocador-invoice-screen-issue' of https://github.com/cake-tech/cake_wallet into CW-429-Linux-trocador-invoice-screen-issue
This commit is contained in:
commit
5bae61b467
1 changed files with 8 additions and 2 deletions
|
@ -9,6 +9,7 @@ import 'package:cake_wallet/src/screens/receive/widgets/anonpay_status_section.d
|
||||||
import 'package:cake_wallet/src/screens/receive/widgets/qr_image.dart';
|
import 'package:cake_wallet/src/screens/receive/widgets/qr_image.dart';
|
||||||
import 'package:cake_wallet/src/screens/receive/widgets/copy_link_item.dart';
|
import 'package:cake_wallet/src/screens/receive/widgets/copy_link_item.dart';
|
||||||
import 'package:cake_wallet/themes/theme_base.dart';
|
import 'package:cake_wallet/themes/theme_base.dart';
|
||||||
|
import 'package:cake_wallet/utils/responsive_layout_util.dart';
|
||||||
import 'package:device_display_brightness/device_display_brightness.dart';
|
import 'package:device_display_brightness/device_display_brightness.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:qr_flutter/qr_flutter.dart' as qr;
|
import 'package:qr_flutter/qr_flutter.dart' as qr;
|
||||||
|
@ -48,8 +49,13 @@ class AnonPayReceivePage extends BasePage {
|
||||||
child: ButtonTheme(
|
child: ButtonTheme(
|
||||||
minWidth: double.minPositive,
|
minWidth: double.minPositive,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () =>
|
onPressed: () {
|
||||||
Navigator.popUntil(context, (route) => route.isFirst),
|
if (ResponsiveLayoutUtil.instance.shouldRenderMobileUI(context)) {
|
||||||
|
Navigator.pushNamedAndRemoveUntil(context, Routes.dashboard, (route) => false);
|
||||||
|
} else {
|
||||||
|
Navigator.popUntil(context, (route) => route.isFirst);
|
||||||
|
}
|
||||||
|
},
|
||||||
child: _backButton),
|
child: _backButton),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue