Skip to content

Created a UI component for the core DownloadingProgressDialog#112

Open
Boonapart228 wants to merge 20 commits intodevfrom
chore/download-data-dialog
Open

Created a UI component for the core DownloadingProgressDialog#112
Boonapart228 wants to merge 20 commits intodevfrom
chore/download-data-dialog

Conversation

@Boonapart228
Copy link

@Boonapart228 Boonapart228 commented May 19, 2025

No description provided.

@HarukeyUA HarukeyUA removed their assignment Sep 18, 2025
description: (@Composable ColumnScope.() -> Unit)? = null,
progressText: (@Composable BoxScope.(Float) -> Unit)? = null,
supportingText: (@Composable RowScope.(Float) -> Unit)? = null,
button: (@Composable ColumnScope.() -> Unit)? = null
Copy link
Contributor

Choose a reason for hiding this comment

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

content? чи що це за button?

Copy link
Collaborator

Choose a reason for hiding this comment

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

button - це опційна кнопка яка може бути, наприклад Cancel

Copy link
Collaborator

Choose a reason for hiding this comment

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

так давайте называть bottomContent или что-то типа того, не обязательно ж button

Copy link
Collaborator

Choose a reason for hiding this comment

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

Перейменував

VMihalatiuk
VMihalatiuk previously approved these changes Oct 7, 2025
import kotlinx.coroutines.isActive

@Composable
fun AnimatedDownloadingProgressBar(
Copy link
Collaborator

Choose a reason for hiding this comment

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

  1. Зачем нужна дополнительная обертка? Снизу есть тоже AnimatedDownloadingProgressBar
  2. Давай не указывать в названии слово Animated

Copy link
Collaborator

Choose a reason for hiding this comment

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

  1. Цей приймає колір і перетворює його в Brush, а той, що нижче, загальний, приймає Brush напряму
  2. Як тоді розрізняти той, що з анімацією, і той то, що без?

}

@Composable
fun DownloadingProgressBar(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Опять много контейнеров наружу смотрит. Разработчик должен сесть за задачу и заиспользовать контейнер, чтобы его не конфузило, какой использовать

Copy link
Collaborator

Choose a reason for hiding this comment

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

Це варіація з Brush і без анімації

description: (@Composable ColumnScope.() -> Unit)? = null,
progressText: (@Composable BoxScope.(Float) -> Unit)? = null,
supportingText: (@Composable RowScope.(Float) -> Unit)? = null,
button: (@Composable ColumnScope.() -> Unit)? = null
Copy link
Collaborator

Choose a reason for hiding this comment

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

так давайте называть bottomContent или что-то типа того, не обязательно ж button

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.

5 participants