Fix for status bars on android,
some updates to the recipes
This commit is contained in:
parent
b6f42a9edb
commit
2dccbaee88
3 changed files with 12 additions and 25 deletions
|
@ -1,14 +1,9 @@
|
|||
package com.cookbook
|
||||
|
||||
import MainView
|
||||
import android.app.Activity
|
||||
import android.os.Bundle
|
||||
import androidx.activity.compose.setContent
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import androidx.compose.runtime.SideEffect
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.graphics.toArgb
|
||||
import androidx.compose.ui.platform.LocalView
|
||||
import androidx.core.view.WindowCompat
|
||||
|
||||
class MainActivity : AppCompatActivity() {
|
||||
|
@ -18,14 +13,6 @@ class MainActivity : AppCompatActivity() {
|
|||
WindowCompat.setDecorFitsSystemWindows(window, true)
|
||||
|
||||
setContent {
|
||||
val view = LocalView.current
|
||||
if (!view.isInEditMode) {
|
||||
SideEffect {
|
||||
val window = (view.context as Activity).window
|
||||
window.statusBarColor = Color.Transparent.toArgb()
|
||||
window.navigationBarColor = Color.Transparent.toArgb()
|
||||
}
|
||||
}
|
||||
MainView()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -63,7 +63,7 @@ val koreanList = listOf(
|
|||
|
||||
Recipe(
|
||||
title = "Bulgolgi",
|
||||
description = "",
|
||||
description = "Delicious Savory and Spicy (like all Korean food) Korean barbecue",
|
||||
ingredients = listOf(
|
||||
"2 Scallion",
|
||||
"1 Large Onion",
|
||||
|
@ -99,17 +99,18 @@ val koreanList = listOf(
|
|||
title = "Buldak | Fire Chicken",
|
||||
description = "Spicy Korean Barbecued Chicken",
|
||||
ingredients = listOf(
|
||||
|
||||
"HEADER-Barbecue",
|
||||
"1 lb Protein of Choice (Originally Chicken)",
|
||||
"2 Tbsp Soy",
|
||||
"1 Tbsp Sugar",
|
||||
"1 Tbsp Honey",
|
||||
"2 Tbsp Rice Wine",
|
||||
"1 Scallion",
|
||||
"Black Pepper",
|
||||
"Sesame Seeds",
|
||||
"1 Scallion",
|
||||
|
||||
"HEADER-Marinating Sauce",
|
||||
"HEADER-Fire Sauce",
|
||||
"3 Tbsp Gochugaru",
|
||||
"2 Alapenos",
|
||||
"1/2 Cup Korean Pear",
|
||||
|
@ -120,7 +121,14 @@ val koreanList = listOf(
|
|||
"1 Tbsp Sesame Oil",
|
||||
"1 Tbsp Honey",
|
||||
),
|
||||
instructions = listOf(),
|
||||
instructions = listOf(
|
||||
"Cut the Protein into Bite-sized pieces",
|
||||
"In a bowl, mix Soy [2 Tbsp], Sugar [1 Tbsp], Honey [1 Tbsp], Rice Wine [2 Tbsp], and Black Pepper. Toss the Protein in this mixture; marinate for 30m.",
|
||||
"Puree all the Fire Sauce ingredients together in a blender. Set Aside.",
|
||||
"Heat a wok over medium heat, cooking Protein to just underdone in batches as needed.",
|
||||
"Pull the Protein, leaving as much of everything else in the wok as you can. Toss in the Fire Sauce and return all to the wok.",
|
||||
"Cook another 3-4 minutes until all are warmed through."
|
||||
),
|
||||
tags = mapOf(
|
||||
"Korean" to TagType.CUISINE,
|
||||
"Entree" to TagType.COURSE,
|
||||
|
|
|
@ -6,18 +6,12 @@ import androidx.compose.foundation.layout.Box
|
|||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.Spacer
|
||||
import androidx.compose.foundation.layout.WindowInsets
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.systemBars
|
||||
import androidx.compose.foundation.layout.width
|
||||
import androidx.compose.foundation.layout.windowInsetsPadding
|
||||
import androidx.compose.foundation.lazy.grid.GridCells
|
||||
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
|
||||
import androidx.compose.foundation.lazy.grid.rememberLazyGridState
|
||||
import androidx.compose.material3.Button
|
||||
import androidx.compose.material3.Icon
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.getValue
|
||||
|
@ -27,14 +21,12 @@ import androidx.compose.runtime.setValue
|
|||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.geometry.Offset
|
||||
import androidx.compose.ui.graphics.Shape
|
||||
import androidx.compose.ui.input.nestedscroll.NestedScrollConnection
|
||||
import androidx.compose.ui.input.nestedscroll.NestedScrollSource
|
||||
import androidx.compose.ui.text.style.TextAlign
|
||||
import androidx.compose.ui.unit.Velocity
|
||||
import androidx.compose.ui.unit.dp
|
||||
import model.TagType
|
||||
import recipeappkmp.shared.generated.resources.Res
|
||||
|
||||
|
||||
@Composable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue