Resolve merge conflicts with staging

This commit is contained in:
Likho 2022-09-01 16:29:00 -05:00
commit b076e76881
4 changed files with 9 additions and 8 deletions

View file

@ -1,3 +1,5 @@
import 'dart:async';
import 'package:decimal/decimal.dart'; import 'package:decimal/decimal.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
@ -1175,7 +1177,7 @@ class _SendViewState extends ConsumerState<SendView> {
try { try {
bool wasCancelled = false; bool wasCancelled = false;
showDialog<dynamic>( unawaited(showDialog<dynamic>(
context: context, context: context,
useSafeArea: false, useSafeArea: false,
barrierDismissible: false, barrierDismissible: false,
@ -1188,7 +1190,7 @@ class _SendViewState extends ConsumerState<SendView> {
}, },
); );
}, },
); ));
final txData = await manager.prepareSend( final txData = await manager.prepareSend(
address: _address!, address: _address!,
@ -1205,7 +1207,7 @@ class _SendViewState extends ConsumerState<SendView> {
txData["note"] = noteController.text; txData["note"] = noteController.text;
txData["address"] = _address; txData["address"] = _address;
Navigator.of(context).push( unawaited(Navigator.of(context).push(
RouteGenerator.getRoute( RouteGenerator.getRoute(
shouldUseMaterialRoute: RouteGenerator shouldUseMaterialRoute: RouteGenerator
.useMaterialPageRoute, .useMaterialPageRoute,
@ -1219,14 +1221,14 @@ class _SendViewState extends ConsumerState<SendView> {
.routeName, .routeName,
), ),
), ),
); ));
} }
} catch (e) { } catch (e) {
if (mounted) { if (mounted) {
// pop building dialog // pop building dialog
Navigator.of(context).pop(); Navigator.of(context).pop();
showDialog<dynamic>( unawaited(showDialog<dynamic>(
context: context, context: context,
useSafeArea: false, useSafeArea: false,
barrierDismissible: true, barrierDismissible: true,
@ -1258,7 +1260,7 @@ class _SendViewState extends ConsumerState<SendView> {
), ),
); );
}, },
); ));
} }
} }
} }

View file

@ -1,5 +1,5 @@
import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:stackwallet/models/exchange/exchange_form_state.dart'; import 'package:stackwallet/models/exchange/estimated_rate_exchange_form_state.dart';
final estimatedRateExchangeFormProvider = final estimatedRateExchangeFormProvider =
ChangeNotifierProvider((ref) => EstimatedRateExchangeFormState()); ChangeNotifierProvider((ref) => EstimatedRateExchangeFormState());

View file

@ -754,7 +754,6 @@ class EpicCashWallet extends CoinServiceAPI {
String receiverAddress = txData['addresss'] as String; String receiverAddress = txData['addresss'] as String;
await m.protect(() async { await m.protect(() async {
if (receiverAddress.startsWith("http://") || receiverAddress.startsWith("https://")) { if (receiverAddress.startsWith("http://") || receiverAddress.startsWith("https://")) {
const int selectionStrategyIsAll = 0; const int selectionStrategyIsAll = 0;
ReceivePort receivePort = await getIsolate({ ReceivePort receivePort = await getIsolate({