Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bbedward committed May 15, 2020
1 parent e5dceca commit fa629b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
1 change: 1 addition & 0 deletions lib/ui/send/send_confirm_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ class _SendConfirmSheetState extends State<SendConfirmSheet> {

Future<void> _doSend() async {
try {
_showSendingAnimation(context);
ProcessResponse resp = await sl.get<AccountService>().requestSend(
state.wallet.representative,
state.wallet.frontier,
Expand Down
19 changes: 7 additions & 12 deletions lib/ui/settings/changerepresentative_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,6 @@ class AppChangeRepresentativeSheet {

StreamSubscription<AuthenticatedEvent> _authSub;

void _registerBus(BuildContext context) {
_authSub = EventTaxiImpl.singleton()
.registerTo<AuthenticatedEvent>()
.listen((event) {
if (event.authType == AUTH_EVENT_TYPE.CHANGE) {
doChange(context);
}
});
}

void _destroyBus() {
if (_authSub != null) {
_authSub.cancel();
Expand All @@ -84,12 +74,17 @@ class AppChangeRepresentativeSheet {
mainBottomSheet(BuildContext context) {
_changeRepHint = AppLocalization.of(context).changeRepHint;
_repAddressStyle = AppStyles.textStyleAddressText60(context);

_authSub = EventTaxiImpl.singleton()
.registerTo<AuthenticatedEvent>()
.listen((event) {
if (event.authType == AUTH_EVENT_TYPE.CHANGE) {
doChange(context);
}
});
AppSheets.showAppHeightNineSheet(
context: context,
onDisposed: _onWillPop,
builder: (BuildContext context) {
_registerBus(context);
return StatefulBuilder(
builder: (BuildContext context, StateSetter setState) {
// On address focus change
Expand Down

0 comments on commit fa629b2

Please sign in to comment.