Giter Site home page Giter Site logo

gastsail / expenses-kmp Goto Github PK

View Code? Open in Web Editor NEW
144.0 4.0 18.0 2.16 MB

This is a sample project for practicing KMP with Jetpack Compose

License: Apache License 2.0

Kotlin 96.12% Shell 0.39% Ruby 0.17% Swift 3.32%
architecture kotlin kotlin-multiplatform kotlin-multiplatform-sample

expenses-kmp's Issues

Questions for expense edit flow

Buenas Gaston.

Hago este issue para ir definiendo el flujo de editar si te parece?.

1 - consulta el tema del generado del ID podría hacerlo de esta manera?:

data class Expense(
    val id:Int = generateId(),
    val amount: Double,
    val category: ExpenseCategory,
    val description: String
) {
    val icon = category.icon
    companion object {
        private var counter = 0

        private fun generateId(): Int {
            counter++
            return counter
        }
    }
}

2 - Consulta para ir a la pantalla de editar seria con un boton o dandole simplemente al card ?, voy haciendo dandole al cardcito por mientras si te parece ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.