@ -15,9 +15,10 @@ import 'package:cake_wallet/view_model/wallet_address_list/wallet_address_list_h
import ' package:cake_wallet/view_model/wallet_address_list/wallet_address_list_item.dart ' ;
import ' package:cake_wallet/view_model/wallet_address_list/wallet_address_list_view_model.dart ' ;
import ' package:cake_wallet/src/screens/receive/widgets/qr_widget.dart ' ;
import ' package:keyboard_actions/keyboard_actions.dart ' ;
class ReceivePage extends BasePage {
ReceivePage ( { this . addressListViewModel } ) ;
ReceivePage ( { this . addressListViewModel } ) : _cryptoAmountFocus = FocusNode ( ) ;
final WalletAddressListViewModel addressListViewModel ;
@ -33,6 +34,8 @@ class ReceivePage extends BasePage {
@ override
Color get titleColor = > Colors . white ;
final FocusNode _cryptoAmountFocus ;
@ override
Widget Function ( BuildContext , Widget ) get rootWrapper = >
( BuildContext context , Widget scaffold ) = > Container (
@ -67,7 +70,20 @@ class ReceivePage extends BasePage {
@ override
Widget body ( BuildContext context ) {
return SingleChildScrollView (
return KeyboardActions (
config: KeyboardActionsConfig (
keyboardActionsPlatform: KeyboardActionsPlatform . IOS ,
keyboardBarColor: isDarkTheme
? Color . fromRGBO ( 48 , 51 , 60 , 1.0 )
: Color . fromRGBO ( 98 , 98 , 98 , 1.0 ) ,
nextFocus: false ,
actions: [
KeyboardActionsItem (
focusNode: _cryptoAmountFocus ,
toolbarButtons: [ ( _ ) = > KeyboardDoneButton ( ) ] ,
)
] ) ,
child: SingleChildScrollView (
child: Column (
children: < Widget > [
Padding (
@ -75,7 +91,7 @@ class ReceivePage extends BasePage {
child: QRWidget (
addressListViewModel: addressListViewModel ,
isAmountFieldShow: true ,
) ,
amountTextFieldFocusNode: _cryptoAmountFocus ) ,
) ,
Observer (
builder: ( _ ) = > ListView . separated (
@ -99,7 +115,8 @@ class ReceivePage extends BasePage {
icon: Icon (
Icons . arrow_forward_ios ,
size: 14 ,
color: Theme . of ( context ) . textTheme . display1 . color ,
color:
Theme . of ( context ) . textTheme . display1 . color ,
) ) ;
}
@ -111,7 +128,8 @@ class ReceivePage extends BasePage {
icon: Icon (
Icons . add ,
size: 20 ,
color: Theme . of ( context ) . textTheme . display1 . color ,
color:
Theme . of ( context ) . textTheme . display1 . color ,
) ) ;
}
@ -157,6 +175,6 @@ class ReceivePage extends BasePage {
} ) ) ,
] ,
) ,
) ;
) ) ;
}
}