Code Monkey home page Code Monkey logo

Comments (5)

SriramPatibanda avatar SriramPatibanda commented on August 20, 2024 1

I am not really sure of this implementation. Imagine the home screen which is the gateway to all other screens. In this, it'll have to refer each of the class to get its route. Won't having one route utility file be better?

CC: @Thesmader

Ok, so creating a class named routes, adding all the static const strings under that and just calling the routes class wherever required would be better maybe?
That way, instead of referring to all the classes, it can just refer to the routes class and tap into the required route.

from project-avocado.

DesignrKnight avatar DesignrKnight commented on August 20, 2024

If I understand correctly, we will have a utility file which will manage the routes. Isn't it?

Sounds like something that will improve the codebase

from project-avocado.

SriramPatibanda avatar SriramPatibanda commented on August 20, 2024

Not exactly. I basically added

If I understand correctly, we will have a utility file which will manage the routes. Isn't it?

Sounds like something that will improve the codebase

Not exactly, I created a static const String (id) in every page which stores the name of the route. So you can easily tap into the route by using something like HomePage.id.

from project-avocado.

SriramPatibanda avatar SriramPatibanda commented on August 20, 2024

@DesignrKnight Please assign this to me. I would like to work on it.

from project-avocado.

DesignrKnight avatar DesignrKnight commented on August 20, 2024

I am not really sure of this implementation. Imagine the home screen which is the gateway to all other screens. In this, it'll have to refer each of the class to get its route. Won't having one route utility file be better?

CC: @Thesmader

from project-avocado.

Related Issues (20)

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.