mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-24 12:29:37 +00:00
27 lines
779 B
Dart
27 lines
779 B
Dart
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
import '../../utilities/util.dart';
|
||
|
import '../stack_dialog.dart';
|
||
|
|
||
|
class FiroExchangeAddressDialog extends StatelessWidget {
|
||
|
const FiroExchangeAddressDialog({super.key});
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return StackOkDialog(
|
||
|
title: "Firo exchange address detected",
|
||
|
message: "Sending to an exchange address from a Spark balance is not"
|
||
|
" allowed. Please send from your transparent balance.",
|
||
|
desktopPopRootNavigator: Util.isDesktop,
|
||
|
maxWidth: Util.isDesktop ? 500 : null,
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Future<void> showFiroExchangeAddressWarning(BuildContext context) async {
|
||
|
return await showDialog<void>(
|
||
|
context: context,
|
||
|
builder: (_) => const FiroExchangeAddressDialog(),
|
||
|
);
|
||
|
}
|