Custom Top App Bar using Jetpack Compose in Android Studio | Part - 1

Поділитися
Вставка
  • Опубліковано 15 гру 2024

КОМЕНТАРІ • 2

  • @mwolfe38
    @mwolfe38 Рік тому +1

    When you use scaffold you get a padding values passed into your lambda which you can apply to your content's padding.. So rather than hardcode the top padding as you did (with 90.dp). you can just pass the "it" value for paddingValues.

    • @DeveloperChunk
      @DeveloperChunk  Рік тому

      Thank you, it is the best practice of using paddingValues instead of hardcoding the values, the code I showed is only for learning so you do it, thank you so much 🤗