remove mobile dialog from desktop page

This commit is contained in:
sneurlax 2024-07-05 18:39:51 -05:00
parent 9e8f9087d4
commit efbf805056

View file

@ -36,7 +36,6 @@ import '../../../../../widgets/desktop/desktop_dialog_close_button.dart';
import '../../../../../widgets/desktop/primary_button.dart'; import '../../../../../widgets/desktop/primary_button.dart';
import '../../../../../widgets/desktop/secondary_button.dart'; import '../../../../../widgets/desktop/secondary_button.dart';
import '../../../../../widgets/rounded_container.dart'; import '../../../../../widgets/rounded_container.dart';
import '../../../../../widgets/stack_dialog.dart';
class MoreFeaturesDialog extends ConsumerStatefulWidget { class MoreFeaturesDialog extends ConsumerStatefulWidget {
const MoreFeaturesDialog({ const MoreFeaturesDialog({
@ -113,8 +112,7 @@ class _MoreFeaturesDialogState extends ConsumerState<MoreFeaturesDialog> {
context: context, context: context,
builder: (context) { builder: (context) {
final isDesktop = Util.isDesktop; final isDesktop = Util.isDesktop;
return isDesktop return DesktopDialog(
? DesktopDialog(
maxWidth: 576, maxWidth: 576,
child: Column( child: Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
@ -179,35 +177,6 @@ class _MoreFeaturesDialogState extends ConsumerState<MoreFeaturesDialog> {
), ),
], ],
), ),
)
: StackDialog(
title: "Warning!",
message:
"Reusing addresses reduces your privacy and security. Are you sure you want to reuse addresses by default?",
leftButton: TextButton(
style: Theme.of(context)
.extension<StackColors>()!
.getSecondaryEnabledButtonStyle(context),
child: Text(
"Cancel",
style: STextStyles.itemSubtitle12(context),
),
onPressed: () {
Navigator.of(context).pop(false);
},
),
rightButton: TextButton(
style: Theme.of(context)
.extension<StackColors>()!
.getPrimaryEnabledButtonStyle(context),
child: Text(
"Continue",
style: STextStyles.button(context),
),
onPressed: () {
Navigator.of(context).pop(true);
},
),
); );
}, },
).then((confirmed) async { ).then((confirmed) async {