Giter VIP home page Giter VIP logo

Comments (4)

SL-Pirate avatar SL-Pirate commented on May 19, 2024 1

@guchengxi1994 Your suggestion is indeed thoughtful, and I appreciate your consideration for enhancing the functionality of FlowElement. While I understand the desire for a direct mechanism to store custom data within the FlowElement itself, it's important to maintain the clarity and simplicity of the plugin's core purpose, which is to facilitate the creation of Flow Charts.

Considering the specific context of the plugin, handling custom data may introduce unnecessary complexity and potentially compromise the user experience. However, I do acknowledge the need for such functionality, and I appreciate your workaround using a Map to associate custom data with the FlowElement's UUID. This approach effectively separates the plugin-specific data from custom data, providing a practical solution.

Here's a more detailed explanation of the workaround using a Map:

// Define the master data structure
Map<String, dynamic> master = {
  "elements": [
    {
      "id": "element1",
      // plugin specific data
    },
    // other elements
  ],
  "data": {
    "element1": {
      // your custom data associated with the FlowElement's UUID
    },
    // other custom data mappings
  }
};

By adopting this approach, you can maintain the integrity of the FlowElement's purpose while offering users the flexibility to include additional information as needed. If you have any further questions or suggestions, feel free to discuss them. Your feedback is valuable in refining the plugin and its features.

from flutter_flow_chart.

SL-Pirate avatar SL-Pirate commented on May 19, 2024 1

@SL-Pirate I think I will use extension on FlowElement to storage custom data. Thanks for the answer.

That approach sounds quite clever and should serve your needs well. Best of luck with your project, and I appreciate your valuable input on the plugin. If you have any more questions or updates, feel free to share them. Happy coding!

from flutter_flow_chart.

guchengxi1994 avatar guchengxi1994 commented on May 19, 2024

@SL-Pirate I think I will use extension on FlowElement to storage custom data. Thanks for the answer.

from flutter_flow_chart.

hansbak avatar hansbak commented on May 19, 2024

After a bit more study i see that the menus are external and a custom menu can be added using the flowElementId in a separate data structure and handled separately....:

no need for the #15 request of me, i will close it.

from flutter_flow_chart.

Related Issues (12)

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.