mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-21 22:58:49 +00:00
widget mounted checks
This commit is contained in:
parent
3982ca29a6
commit
9332638a9b
1 changed files with 18 additions and 10 deletions
|
@ -668,11 +668,15 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
||||||
text: address,
|
text: address,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
unawaited(showFloatingFlushBar(
|
if (mounted) {
|
||||||
type: FlushBarType.info,
|
unawaited(
|
||||||
message: "Copied to clipboard",
|
showFloatingFlushBar(
|
||||||
context: context,
|
type: FlushBarType.info,
|
||||||
));
|
message: "Copied to clipboard",
|
||||||
|
context: context,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
|
@ -1123,11 +1127,15 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
final data = ClipboardData(text: trade.tradeId);
|
final data = ClipboardData(text: trade.tradeId);
|
||||||
await clipboard.setData(data);
|
await clipboard.setData(data);
|
||||||
unawaited(showFloatingFlushBar(
|
if (mounted) {
|
||||||
type: FlushBarType.info,
|
unawaited(
|
||||||
message: "Copied to clipboard",
|
showFloatingFlushBar(
|
||||||
context: context,
|
type: FlushBarType.info,
|
||||||
));
|
message: "Copied to clipboard",
|
||||||
|
context: context,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
child: SvgPicture.asset(
|
child: SvgPicture.asset(
|
||||||
Assets.svg.copy,
|
Assets.svg.copy,
|
||||||
|
|
Loading…
Reference in a new issue