Updated receive screen (#297)

* Updated receive screen * fixed format

Serhii committed Mar 23, 2022 at 19:53 UTC e7e419bc836ac72e631e8f8a2aab389a6ddc423f
1 file changed +30 -2
lib/src/screens/receive/receive_page.dart
+30 -2
@@ -2,6 +2,7 @@ import 'package:cake_wallet/src/widgets/keyboard_done_button.dart';
2 import 'package:cake_wallet/themes/theme_base.dart';
3 import 'package:cake_wallet/utils/show_pop_up.dart';
4 import 'package:cake_wallet/view_model/dashboard/dashboard_view_model.dart';
5 +import 'package:cw_core/wallet_type.dart';
6 import 'package:flutter/material.dart';
7 import 'package:flutter/cupertino.dart';
8 import 'package:flutter_mobx/flutter_mobx.dart';
@@ -108,7 +109,8 @@ class ReceivePage extends BasePage {
109
110 @override
111 Widget body(BuildContext context) {
111 - return KeyboardActions(
112 + return addressListViewModel.type == WalletType.monero
113 + ? KeyboardActions(
114 config: KeyboardActionsConfig(
115 keyboardActionsPlatform: KeyboardActionsPlatform.IOS,
116 keyboardBarColor: Theme.of(context).accentTextTheme.body2
@@ -210,6 +212,32 @@ class ReceivePage extends BasePage {
212 })),
213 ],
214 ),
213 - ));
215 + )) : Padding(
216 + padding: EdgeInsets.fromLTRB(24, 24, 24, 32),
217 + child: Column(
218 + children: [
219 + Expanded(
220 + flex: 7,
221 + child: QRWidget(
222 + addressListViewModel: addressListViewModel,
223 + isAmountFieldShow: true,
224 + amountTextFieldFocusNode: _cryptoAmountFocus,
225 + isLight: currentTheme.type == ThemeType.light),
226 + ),
227 + Expanded(
228 + flex: 2,
229 + child: SizedBox(),
230 + ),
231 + Text(S.of(context).electrum_address_disclaimer,
232 + textAlign: TextAlign.center,
233 + style: TextStyle(
234 + fontSize: 15,
235 + color: Theme.of(context)
236 + .accentTextTheme
237 + .display2
238 + .backgroundColor)),
239 + ],
240 + ),
241 + );
242 }
243 }