@@ -4,7 +4,8 @@ import androidx.compose.foundation.Image
44import androidx.compose.foundation.layout.Arrangement
55import androidx.compose.foundation.layout.Box
66import androidx.compose.foundation.layout.Column
7- import androidx.compose.foundation.layout.fillMaxHeight
7+ import androidx.compose.foundation.layout.Spacer
8+ import androidx.compose.foundation.layout.fillMaxSize
89import androidx.compose.foundation.layout.fillMaxWidth
910import androidx.compose.foundation.layout.padding
1011import androidx.compose.material3.Text
@@ -60,7 +61,7 @@ fun AddWalletScreen(
6061) {
6162
6263 EnvironmentBottomSheet .getResult {
63- if (it >= 0 ) {
64+ if (it >= 0 ) {
6465 viewModel.postEvent(
6566 AddWalletViewModel .LocalEvents .SelectEnviroment (
6667 isTestnet = it == 1 ,
@@ -74,15 +75,14 @@ fun AddWalletScreen(
7475
7576 Column (
7677 modifier = Modifier
77- .fillMaxWidth()
78- .fillMaxHeight(),
78+ .fillMaxSize(),
7979 horizontalAlignment = Alignment .CenterHorizontally ,
8080 verticalArrangement = Arrangement .SpaceEvenly
8181 ) {
8282
8383 Box (
8484 modifier = Modifier
85- .weight(6f )
85+ .weight(2f )
8686 .padding(horizontal = 24 .dp),
8787 ) {
8888 Image (
@@ -102,7 +102,6 @@ fun AddWalletScreen(
102102
103103 GreenColumn (
104104 space = 8 ,
105- modifier = Modifier .padding(horizontal = 0 .dp).weight(4f ),
106105 horizontalAlignment = Alignment .CenterHorizontally
107106 ) {
108107 Text (
@@ -118,32 +117,32 @@ fun AddWalletScreen(
118117 )
119118 }
120119
121- Column {
122- GreenColumn (
123- padding = 24 ,
124- modifier = Modifier ,
125- horizontalAlignment = Alignment .CenterHorizontally ,
126- ) {
120+ Spacer (modifier = Modifier .weight(1f ))
121+
122+ GreenColumn (
123+ padding = 0 ,
124+ modifier = Modifier .padding(horizontal = 24 .dp).padding(bottom = 24 .dp),
125+ horizontalAlignment = Alignment .CenterHorizontally ,
126+ ) {
127127
128- GreenButton (
129- stringResource(Res .string.id_new_wallet),
130- modifier = Modifier .fillMaxWidth(),
131- size = GreenButtonSize .BIG ,
132- ) {
133- viewModel.postEvent(AddWalletViewModel .LocalEvents .NewWallet )
134- }
135-
136- GreenButton (
137- stringResource(Res .string.id_restore_wallet),
138- modifier = Modifier .fillMaxWidth(),
139- type = GreenButtonType .OUTLINE ,
140- color = GreenButtonColor .WHITE ,
141- size = GreenButtonSize .BIG ,
142- ) {
143- viewModel.postEvent(AddWalletViewModel .LocalEvents .RestoreWallet )
144- }
128+ GreenButton (
129+ stringResource(Res .string.id_new_wallet),
130+ modifier = Modifier .fillMaxWidth(),
131+ size = GreenButtonSize .BIG ,
132+ ) {
133+ viewModel.postEvent(AddWalletViewModel .LocalEvents .NewWallet )
134+ }
145135
136+ GreenButton (
137+ stringResource(Res .string.id_restore_wallet),
138+ modifier = Modifier .fillMaxWidth(),
139+ type = GreenButtonType .OUTLINE ,
140+ color = GreenButtonColor .WHITE ,
141+ size = GreenButtonSize .BIG ,
142+ ) {
143+ viewModel.postEvent(AddWalletViewModel .LocalEvents .RestoreWallet )
146144 }
145+
147146 }
148147 }
149148
0 commit comments