Skip to content

Bebroo Android#3

Open
samorojy wants to merge 151 commits intomasterfrom
android
Open

Bebroo Android#3
samorojy wants to merge 151 commits intomasterfrom
android

Conversation

@samorojy
Copy link
Collaborator

No description provided.

ubuntuegor and others added 30 commits November 20, 2021 20:10
added idea of drawing board based on SurfaceView
…ng long board name and long username in BoardPreviewCard)
Copy link

@nbirillo nbirillo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В целом довольно неплохо, то есть самое основное - это сейчас огромная вложенность и в основном она потому что всякие настройки стилей не вынесены в темы или отдельные элементы, чтобы можно было просто их переиспользовать и их было легко менять
а так там незначительные мелочи

Comment on lines +16 to +20
if (settingsStore.token == null) {
preferences.remove(TOKEN)
} else {
preferences[TOKEN] = settingsStore.token
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

старайтесь использовать более котлиновские конструкции, типа let, ?:

Comment on lines +4 to +5
const val API_URL = "https://bebroo.bnt.to/api"
const val APP_URL = "https://bebroo.bnt.to/"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

кажется одно выражается через другое

Comment on lines +246 to +250
text = stringResource(R.string.rename_board),
modifier = Modifier.padding(top = 15.dp).align(Alignment.CenterHorizontally),
fontSize = 25.sp,
fontWeight = FontWeight.Medium,
)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ну обычно делают всякие обертки с темами и не настраивают элементы уже отдельно, чтоб это можно было легко править и сразу везде

OutlinedTextField(
value = password,
onValueChange = {
if (it.length <= 100) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

такие штук лучше выносить в валидаторы, чтоб это было проще)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants