@@ -7,12 +7,12 @@ import androidx.compose.foundation.Image
77import androidx.compose.foundation.background
88import androidx.compose.foundation.clickable
99import androidx.compose.foundation.layout.Box
10- import androidx.compose.foundation.layout.Column
1110import androidx.compose.foundation.layout.aspectRatio
1211import androidx.compose.foundation.layout.fillMaxSize
1312import androidx.compose.foundation.layout.padding
1413import androidx.compose.foundation.layout.size
1514import androidx.compose.foundation.shape.CircleShape
15+ import androidx.compose.material3.CircularProgressIndicator
1616import androidx.compose.material3.ExperimentalMaterial3Api
1717import androidx.compose.material3.rememberTooltipState
1818import androidx.compose.runtime.Composable
@@ -35,7 +35,6 @@ import androidx.compose.ui.platform.LocalContext
3535import androidx.compose.ui.platform.LocalDensity
3636import androidx.compose.ui.platform.testTag
3737import androidx.compose.ui.res.painterResource
38- import androidx.compose.ui.res.stringResource
3938import androidx.compose.ui.tooling.preview.Preview
4039import androidx.compose.ui.unit.Dp
4140import androidx.compose.ui.unit.dp
@@ -124,28 +123,28 @@ fun QrCodeImage(
124123 }
125124 }
126125
127- Column (
128- modifier = Modifier .align(Alignment .Center ),
129- horizontalAlignment = Alignment .CenterHorizontally
130- ) {
131- logoPainter?.let {
132- Box (
133- contentAlignment = Alignment .Center ,
134- modifier = Modifier
135- .size(68 .dp)
136- .background(Color .White , shape = CircleShape )
137- ) {
138- Image (
139- painter = it,
140- contentDescription = null ,
141- modifier = Modifier .size(50 .dp)
142- )
143- }
126+ logoPainter?.let {
127+ Box (
128+ contentAlignment = Alignment .Center ,
129+ modifier = Modifier
130+ .size(68 .dp)
131+ .background(Color .White , shape = CircleShape )
132+ .align(Alignment .Center )
133+ ) {
134+ Image (
135+ painter = it,
136+ contentDescription = null ,
137+ modifier = Modifier .size(50 .dp)
138+ )
144139 }
140+ }
145141
146- if (bitmap == null ) {
147- CaptionB (stringResource(R .string.wallet__receive_qr_generating), color = Colors .Black )
148- }
142+ if (bitmap == null ) {
143+ CircularProgressIndicator (
144+ color = Colors .Black ,
145+ strokeWidth = 4 .dp,
146+ modifier = Modifier .size(68 .dp)
147+ )
149148 }
150149 }
151150}
0 commit comments