mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-25 11:45:59 +00:00
use same back button widget on mobile as on desktop
This commit is contained in:
parent
0f4fb8378f
commit
96c1976d78
1 changed files with 19 additions and 22 deletions
|
@ -23,7 +23,6 @@ import 'package:stackwallet/themes/stack_colors.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/util.dart';
|
|
||||||
import 'package:stackwallet/widgets/background.dart';
|
import 'package:stackwallet/widgets/background.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/onetime_popups/tor_has_been_add_dialog.dart';
|
import 'package:stackwallet/widgets/onetime_popups/tor_has_been_add_dialog.dart';
|
||||||
|
@ -40,27 +39,25 @@ class HiddenSettings extends StatelessWidget {
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: Util.isDesktop
|
leading: Padding(
|
||||||
? Padding(
|
padding: const EdgeInsets.all(8.0),
|
||||||
padding: const EdgeInsets.all(8.0),
|
child: AppBarIconButton(
|
||||||
child: AppBarIconButton(
|
size: 32,
|
||||||
size: 32,
|
color: Theme.of(context)
|
||||||
color: Theme.of(context)
|
.extension<StackColors>()!
|
||||||
.extension<StackColors>()!
|
.textFieldDefaultBG,
|
||||||
.textFieldDefaultBG,
|
shadows: const [],
|
||||||
shadows: const [],
|
icon: SvgPicture.asset(
|
||||||
icon: SvgPicture.asset(
|
Assets.svg.arrowLeft,
|
||||||
Assets.svg.arrowLeft,
|
width: 18,
|
||||||
width: 18,
|
height: 18,
|
||||||
height: 18,
|
color: Theme.of(context)
|
||||||
color: Theme.of(context)
|
.extension<StackColors>()!
|
||||||
.extension<StackColors>()!
|
.topNavIconPrimary,
|
||||||
.topNavIconPrimary,
|
),
|
||||||
),
|
onPressed: Navigator.of(context).pop,
|
||||||
onPressed: Navigator.of(context).pop,
|
),
|
||||||
),
|
),
|
||||||
)
|
|
||||||
: Container(),
|
|
||||||
title: Text(
|
title: Text(
|
||||||
"Dev options",
|
"Dev options",
|
||||||
style: STextStyles.navBarTitle(context),
|
style: STextStyles.navBarTitle(context),
|
||||||
|
|
Loading…
Reference in a new issue