Is that possible to put action, message handler, and other functions in own file? #3675
-
Imagine there are lots of action, message handler, and other functions in App file. It's hard to read and maintain.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
It looks like you might have accidentally created this duplicate of #3674? I'm not sure I fully understand your question - how would you use methods from a class outside the class? Depending on how your application is structured, you might be able to put some of this logic in custom widgets rather than handling everything in your App. You might find the Coordinating widgets guide in the docs useful here. |
Beta Was this translation helpful? Give feedback.
Right, but my general point was that...
Notice that the
ByteInputApp
in the final example only contains acompose
method. The compound widgets (where the logic happens) could be in other files and then imported.Perhaps this isn't possible with your application structure, but I hoped this would help give you some ideas.