File tree Expand file tree Collapse file tree
JetLagged/app/src/main/java/com/example/jetlagged Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -181,8 +181,8 @@ fun AverageTimeInBedCard(modifier: Modifier = Modifier) {
181181 secondLineText = " 8h42min" ,
182182 icon = Icons .Default .Watch ,
183183 modifier = modifier
184- .wrapContentWidth()
185- .heightIn(min = 156 .dp)
184+ .wrapContentWidth()
185+ .heightIn(min = 156 .dp)
186186 )
187187}
188188
@@ -197,8 +197,8 @@ fun AverageTimeAsleepCard(modifier: Modifier = Modifier) {
197197 secondLineText = " 7h42min" ,
198198 icon = Icons .Default .SingleBed ,
199199 modifier = modifier
200- .wrapContentWidth()
201- .heightIn(min = 156 .dp)
200+ .wrapContentWidth()
201+ .heightIn(min = 156 .dp)
202202 )
203203}
204204
@@ -211,8 +211,8 @@ fun WellnessCard(
211211 BasicInformationalCard (
212212 borderColor = LightBlue ,
213213 modifier = modifier
214- .widthIn(max = 400 .dp)
215- .heightIn(min = 200 .dp)
214+ .widthIn(max = 400 .dp)
215+ .heightIn(min = 200 .dp)
216216 ) {
217217 FadingCircleBackground (36 .dp, LightBlue .copy(0.25f ))
218218 Column (
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17- @file:OptIn(ExperimentalComposeUiApi ::class )
18-
1917package com.example.jetlagged
2018
2119import androidx.compose.foundation.background
@@ -32,12 +30,8 @@ import androidx.compose.foundation.rememberScrollState
3230import androidx.compose.foundation.verticalScroll
3331import androidx.compose.material3.windowsizeclass.WindowWidthSizeClass
3432import androidx.compose.runtime.Composable
35- import androidx.compose.runtime.movableContentOf
36- import androidx.compose.runtime.remember
37- import androidx.compose.ui.ExperimentalComposeUiApi
3833import androidx.compose.ui.Modifier
3934import androidx.compose.ui.graphics.Color
40- import androidx.compose.ui.layout.LookaheadScope
4135import androidx.compose.ui.unit.dp
4236import androidx.lifecycle.compose.collectAsStateWithLifecycle
4337import androidx.lifecycle.viewmodel.compose.viewModel
@@ -107,6 +101,5 @@ fun JetLaggedScreen(
107101 }
108102 }
109103 }
110-
111104 }
112105}
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import androidx.activity.compose.setContent
2222import androidx.activity.enableEdgeToEdge
2323import androidx.compose.material3.windowsizeclass.ExperimentalMaterial3WindowSizeClassApi
2424import androidx.compose.material3.windowsizeclass.calculateWindowSizeClass
25- import androidx.core.view.WindowCompat
2625import com.example.jetlagged.ui.theme.JetLaggedTheme
2726
2827class MainActivity : ComponentActivity () {
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ import androidx.compose.ui.Modifier
2626import androidx.compose.ui.draw.drawWithCache
2727import androidx.compose.ui.graphics.Brush
2828import androidx.compose.ui.graphics.ShaderBrush
29- import androidx.compose.ui.graphics.drawscope.scale
3029import androidx.compose.ui.graphics.drawscope.ContentDrawScope
3130import androidx.compose.ui.node.DrawModifierNode
3231import androidx.compose.ui.node.ModifierNodeElement
Original file line number Diff line number Diff line change @@ -49,8 +49,7 @@ fun HeartRateCard(
4949 BasicInformationalCard (
5050 borderColor = Coral ,
5151 modifier = modifier
52- .height(260 .dp)
53-
52+ .height(260 .dp)
5453 ) {
5554 Column (
5655 modifier = Modifier
You can’t perform that action at this time.
0 commit comments