Skip to content

Commit

Permalink
Updated receive screen (#297)
Browse files Browse the repository at this point in the history
* Updated receive screen

* fixed format
  • Loading branch information
Serhii-Borodenko committed Mar 23, 2022
1 parent d88ecdb commit e7e419b
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions lib/src/screens/receive/receive_page.dart
Expand Up @@ -2,6 +2,7 @@ import 'package:cake_wallet/src/widgets/keyboard_done_button.dart';
import 'package:cake_wallet/themes/theme_base.dart';
import 'package:cake_wallet/utils/show_pop_up.dart';
import 'package:cake_wallet/view_model/dashboard/dashboard_view_model.dart';
import 'package:cw_core/wallet_type.dart';
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter_mobx/flutter_mobx.dart';
Expand Down Expand Up @@ -108,7 +109,8 @@ class ReceivePage extends BasePage {

@override
Widget body(BuildContext context) {
return KeyboardActions(
return addressListViewModel.type == WalletType.monero
? KeyboardActions(
config: KeyboardActionsConfig(
keyboardActionsPlatform: KeyboardActionsPlatform.IOS,
keyboardBarColor: Theme.of(context).accentTextTheme.body2
Expand Down Expand Up @@ -210,6 +212,32 @@ class ReceivePage extends BasePage {
})),
],
),
));
)) : Padding(
padding: EdgeInsets.fromLTRB(24, 24, 24, 32),
child: Column(
children: [
Expanded(
flex: 7,
child: QRWidget(
addressListViewModel: addressListViewModel,
isAmountFieldShow: true,
amountTextFieldFocusNode: _cryptoAmountFocus,
isLight: currentTheme.type == ThemeType.light),
),
Expanded(
flex: 2,
child: SizedBox(),
),
Text(S.of(context).electrum_address_disclaimer,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 15,
color: Theme.of(context)
.accentTextTheme
.display2
.backgroundColor)),
],
),
);
}
}

0 comments on commit e7e419b

Please sign in to comment.