Skip to content

nabilBouzineDev/Fes-MyCityApp

Repository files navigation

read_me_banner

Lessons Learned

I built this app in order to learn the following topics:

  • MVVM architecture

    • Preserve user state across device configuration changes
    • Maintain Business Logic outside of composable functions
    • Apply seperates of concerns principle
    • Implement Ui States.
  • Adpative UI

    • Build an adaptive layout to support multiple screen sizes.
  • Jetpack Compose Navigation

    • Navigates between multiple screens.
    • Sharing data with another app using intents.
    • Manipulate the back stack to navigate to previous screens.
  • and more....

Prerequisites

It's recommended to have these prerequisites for completing this project:

  1. Familiar with how to create UI layouts in Compose, and how to make them adaptive to different screen sizes
  2. Ability to add and implement the Jetpack Navigation component with Compose
  3. Ability to implement an app with the recommended app architecture.

Low-Fi

low-fi

  • I made a simple model that provides me a basic idea of what the app looks like.
  • Later on, I sketch some arrows to illustrate the navigation of the app.
  • Finally, I implement the logic and layout of the app using Kotlin and Jetpack Compose library.

Showcase

Demo

I use when statements:

To assign the appropriate type of navigation bar for each screen size

#Code animation


To create a composable detail screen for each navigation bar

animation

Screenshots

Compact Size Devices (ex: phone in portrait mode)

screenshots01


Medium Size Devices (ex: foldable in portrait mode)

screenshots02


Expanded Size Devices (ex: Tablets)

screenshots03


Disclaimer

  • I made this app for educational purposes only.
  • I include some rough data and it is inaccurate.

Links

Get Started? The main resources of this project:

codelab github

Any Question? Contact Me:

linkedin github