Format round 2

This commit is contained in:
Syer10
2023-03-26 16:32:53 -04:00
parent fbf3ac9a58
commit 684b0f68ed
342 changed files with 2101 additions and 2095 deletions

View File

@@ -19,7 +19,7 @@ import me.tatarka.inject.annotations.Provides
@Component
abstract class AppComponent(
@get:Provides
val context: ContextWrapper
val context: ContextWrapper,
) : ViewModelComponent, DataComponent, DomainComponent, UiComponent {
abstract val appMigrations: AppMigrations

View File

@@ -13,7 +13,7 @@ import me.tatarka.inject.annotations.Inject
class AppMigrations @Inject constructor(
private val migrationPreferences: MigrationPreferences,
private val contextWrapper: ContextWrapper
private val contextWrapper: ContextWrapper,
) {
fun runMigrations(): Boolean {

View File

@@ -99,7 +99,7 @@ class SkikoAppDelegate @OverrideInit constructor() : UIResponder(), UIApplicatio
modifier = Modifier
.align(Alignment.BottomCenter)
.padding(bottom = 64.dp),
context = context
context = context,
)
}
}
@@ -128,7 +128,7 @@ fun ToastOverlay(modifier: Modifier, context: ContextWrapper) {
Length.SHORT -> 2.seconds
Length.LONG -> 5.seconds
else -> Duration.ZERO
}
},
)
toast = null
}
@@ -136,13 +136,13 @@ fun ToastOverlay(modifier: Modifier, context: ContextWrapper) {
@Suppress("NAME_SHADOWING")
Crossfade(
toast?.first,
modifier = modifier
modifier = modifier,
) { toast ->
if (toast != null) {
Card(
Modifier.sizeIn(maxWidth = 200.dp),
shape = CircleShape,
backgroundColor = Color.DarkGray
backgroundColor = Color.DarkGray,
) {
Text(
toast,
@@ -151,7 +151,7 @@ fun ToastOverlay(modifier: Modifier, context: ContextWrapper) {
maxLines = 2,
overflow = TextOverflow.Ellipsis,
fontSize = 12.sp,
textAlign = TextAlign.Center
textAlign = TextAlign.Center,
)
}
}