Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
caiodev committed Aug 28, 2022
1 parent 2c205ac commit b162433
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 8 deletions.
14 changes: 14 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,22 @@ import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.shape.CornerSize
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.*
import androidx.compose.material.ButtonDefaults
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface
import androidx.compose.material.Button
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
Expand All @@ -19,8 +30,6 @@ import androidx.compose.ui.res.dimensionResource
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import br.com.caiodev.newmaterialdesigntest.extensions.textSizeResource
import br.com.caiodev.newmaterialdesigntest.ui.theme.NewMaterialDesignTestTheme
import br.com.caiodev.newmaterialdesigntest.ui.theme.Purple500
Expand Down Expand Up @@ -82,9 +91,12 @@ fun ComposeWidgets() {

Spacer(modifier = Modifier.height(dimensionResource(id = R.dimen.size_8dp)))

Button(enabled = true, onClick = {}, modifier = Modifier.fillMaxWidth(),
colors = ButtonDefaults.buttonColors(backgroundColor = Purple500)) {
Text(text = stringResource(id = R.string.surface_image_button_text),
Button(
enabled = true, onClick = {}, modifier = Modifier.fillMaxWidth(),
colors = ButtonDefaults.buttonColors(backgroundColor = Purple500)
) {
Text(
text = stringResource(id = R.string.surface_image_button_text),
color = Color.White,
fontSize = textSizeResource(id = R.dimen.text_size_14sp)
)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
//Compose
activity = '1.5.1'
compiler = '1.3.0-rc01'
composeCore = '1.3.0-alpha03'
composeCore = '1.3.0-beta01'

core = '1.8.0'
gradleVersion = '7.2.2'
Expand Down

0 comments on commit b162433

Please sign in to comment.