Skip to content

Commit f60a3b4

Browse files
committed
Refactor WizardScreen to use ViewModel
Refactor WizardScreen to use ViewModel Introduces `WizardViewModel` to manage the state and logic of the `WizardScreen`. This change centralizes state management and improves the testability of the screen.
1 parent 844d298 commit f60a3b4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/java/de/berlindroid/zepatch/ui/BitmapToStitches.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import de.berlindroid.zepatch.utils.multiLet
2929
import kotlinx.coroutines.Dispatchers
3030
import kotlinx.coroutines.launch
3131

32-
3332
@Composable
3433
fun BitmapToStitches(
3534
modifier: Modifier = Modifier,
@@ -99,7 +98,8 @@ fun BitmapToStitches(
9998
@Preview
10099
@Composable
101100
fun BitmapToStitchesPreview() {
102-
val imageBitmap = ImageBitmap(width = 100, height = 100) // Replace with a real ImageBitmap if needed
101+
val imageBitmap =
102+
ImageBitmap(width = 100, height = 100) // Replace with a real ImageBitmap if needed
103103
val histogram = imageBitmap.asAndroidBitmap().colorHistogram()
104104
BitmapToStitches(
105105
reducedImageBitmap = imageBitmap,

0 commit comments

Comments
 (0)