correct aligment
This commit is contained in:
		
							parent
							
								
									d9f4170fbd
								
							
						
					
					
						commit
						6bef378fc0
					
				
					 1 changed files with 48 additions and 35 deletions
				
			
		|  | @ -72,52 +72,65 @@ fun SessionRecapScreen(modifier: Modifier, sessionRecapActions: SessionRecapActi | ||||||
|             .fillMaxHeight() |             .fillMaxHeight() | ||||||
|             .padding(16.dp), |             .padding(16.dp), | ||||||
|         horizontalAlignment = Alignment.CenterHorizontally, |         horizontalAlignment = Alignment.CenterHorizontally, | ||||||
|         verticalArrangement = Arrangement.Center |         verticalArrangement = Arrangement.SpaceBetween | ||||||
|     ) { |     ) { | ||||||
|         Text( |         Text( | ||||||
|             text = stringResource(R.string.congrats) + hms, |             text = stringResource(R.string.congrats) + hms, | ||||||
|             modifier = Modifier.fillMaxWidth(), |             modifier = Modifier | ||||||
|  |                 .fillMaxWidth(), | ||||||
|             textAlign = TextAlign.Center, |             textAlign = TextAlign.Center, | ||||||
|             fontWeight = FontWeight.Light, |             fontWeight = FontWeight.Light, | ||||||
|             fontSize = 30.sp |             fontSize = 30.sp, | ||||||
|  | 
 | ||||||
|         ) |         ) | ||||||
| 
 | 
 | ||||||
|         Text( |         Column( | ||||||
|             text = stringResource(R.string.how_did_it_go), |             modifier = Modifier.fillMaxWidth() | ||||||
|             modifier = Modifier.fillMaxWidth(), |         ) { | ||||||
|             textAlign = TextAlign.Center, |             Text( | ||||||
|             fontWeight = FontWeight.Light, |                 text = stringResource(R.string.how_did_it_go), | ||||||
|             fontSize = 30.sp |                 modifier = Modifier.fillMaxWidth(), | ||||||
|         ) |                 textAlign = TextAlign.Center, | ||||||
| 
 |                 fontWeight = FontWeight.Light, | ||||||
|         Row { |                 fontSize = 30.sp | ||||||
|             ImageBackgroundButton( |  | ||||||
|                 paint = painterResource(id = R.drawable.mood_1), |  | ||||||
|                 str = stringResource(id = R.string.good), |  | ||||||
|                 background2 = background2, |  | ||||||
|                 setBackground1 = setBackground2, |  | ||||||
|                 setBackground2 = setBackground1 |  | ||||||
|             ) |             ) | ||||||
| 
 | 
 | ||||||
|             ImageBackgroundButton( |             Row( | ||||||
|                 paint = painterResource(id = R.drawable.mood_2), |                 horizontalArrangement = Arrangement.Center, | ||||||
|                 str = stringResource(id = R.string.bad), |                 modifier = Modifier | ||||||
|                 background2 = background1, |                     .fillMaxWidth() | ||||||
|                 setBackground1 = setBackground1, |                     .align(Alignment.CenterHorizontally) | ||||||
|                 setBackground2 = setBackground2 |             ) { | ||||||
|             ) |                 ImageBackgroundButton( | ||||||
|  |                     paint = painterResource(id = R.drawable.mood_1), | ||||||
|  |                     str = stringResource(id = R.string.good), | ||||||
|  |                     background2 = background2, | ||||||
|  |                     setBackground1 = setBackground2, | ||||||
|  |                     setBackground2 = setBackground1 | ||||||
|  |                 ) | ||||||
|  | 
 | ||||||
|  |                 ImageBackgroundButton( | ||||||
|  |                     paint = painterResource(id = R.drawable.mood_2), | ||||||
|  |                     str = stringResource(id = R.string.bad), | ||||||
|  |                     background2 = background1, | ||||||
|  |                     setBackground1 = setBackground1, | ||||||
|  |                     setBackground2 = setBackground2 | ||||||
|  |                 ) | ||||||
|  |             } | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         BasicButton( |         Column { | ||||||
|             R.string.save, Modifier.basicButton() |             BasicButton( | ||||||
|         ) { |                 R.string.save, Modifier.basicButton() | ||||||
|             sessionRecapActions.saveSession() |             ) { | ||||||
|         } |                 sessionRecapActions.saveSession() | ||||||
|         BasicButton( |             } | ||||||
|             R.string.discard, Modifier.basicButton(), |             BasicButton( | ||||||
|             colors = ButtonDefaults.buttonColors(backgroundColor = Color.Red) |                 R.string.discard, Modifier.basicButton(), | ||||||
|         ) { |                 colors = ButtonDefaults.buttonColors(backgroundColor = Color.Red) | ||||||
|             sessionRecapActions.discardSession() |             ) { | ||||||
|  |                 sessionRecapActions.discardSession() | ||||||
|  |             } | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Rune Dyselinck
						Rune Dyselinck