Comments (4)
@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 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.
@SL-Pirate I think I will use extension on FlowElement
to storage custom data. Thanks for the answer.
from flutter_flow_chart.
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)
- Canvas scale & move requirements HOT 1
- Text Editor Bug/Crash HOT 5
- Change arrow style HOT 3
- Canvas move and zoom HOT 1
- Reminder to update the demo preview (example) on pub.dev HOT 1
- Add {bool notify = true} to `removeElement` HOT 1
- add custom data to an element HOT 2
- reopening issue as I see the same behavior - keyboard window closes before I can type anything HOT 2
- Canvas Zoom HOT 7
- Pdf download of dashboard HOT 6
- Zoom issues/new features HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_flow_chart.