Comments (27)
Removing design doc
label as it doesn't seem to be applicable here.
from flutter.
I think it would be helpful to explain when and how to use this by providing a use case. Imo, one of the tricky things about Flutter modules is that when your UI has multiple parts and you're using bloc or provider, each part ends up doing the same thing. So, if you update one part, it could mess up the whole project because you can't rely on two different versions of the same package
Also imagine having to deal with gradle configuration for each one of ur modules when there is a breaking change like what happend in 3.16
Also i see a the bundle got 2.5 times bigger i don't think this is a good thing
Maybee there is somewhere to fit just i don't see it
from flutter.
What's more intersseting is how to deal with assets in this case is it possible to pass them up and down between modules ?
from flutter.
I tried pictures and fonts, but they all failed. By default, it reads the package path of the startup module, which is com.example.app. I used the package attribute to make changes, but they all failed. Why is this? Is there any solution?
from flutter.
Can it be understood that these modules are currently just plugins and not real modules?
from flutter.
It is a real module and can be started independently, similar to Android native sub-module development.
from flutter.
It is a real module and can be started independently, similar to Android native sub-module development.
Tbh he is right what we have here is a mix between the two kinda modules shaped inside a plugin
from flutter.
I think it would be helpful to explain when and how to use this by providing a use case. Imo, one of the tricky things about Flutter modules is that when your UI has multiple parts and you're using bloc or provider, each part ends up doing the same thing. So, if you update one part, it could mess up the whole project because you can't rely on two different versions of the same package Also imagine having to deal with gradle configuration for each one of ur modules when there is a breaking change like what happend in 3.16 Also i see a the bundle got 2.5 times bigger i don't think this is a good thing Maybee there is somewhere to fit just i don't see it
What does this bundle refer to? I created a new Flutter project. The packaged volume is 17.4MB, while the packaged volume of the multi-module Flutter project is 17.9MB. This volume should be acceptable, and there is no 2.5 times the volume.
from flutter.
See the project size in ur disk
from flutter.
I thought it was the packaging size. This shouldn’t be a problem. Most developers’ productivity tools have enough capacity.
from flutter.
Now there is only one problem left, how to solve the problem of access of local resources between various modules
from flutter.
@LanSeLianMa
Also is it possible to share variables between modules back and forth
from flutter.
As long as it is added in the common module, other modules can access it, but the compiler will not prompt you. You need to import the package manually. However, when importing the package, the compiler will prompt you.
from flutter.
@LanSeLianMa
Hmmm Intersseting
maybe a use case i can think about is to store some logic inside a seperate module not a ui component then it can be helpfull something like hashing or parsing
What do u think?
from flutter.
ask if this Flutter development method can be formally applied in actual projects?
@LanSeLianMa Can you elaborate when you say to formally apply in actual projects ? Are you proposing to add this as an option in the sdk itself ? By the looks of it and your findings so far, it seems there are lot of open end cases that you'll need to cover, consider and test before presenting the idea.
Also, check if this resembles your case or not.
from flutter.
请问这种Flutter开发方式可以正式应用到实际项目中吗?
@LanSeLianMa您说要正式应用到实际项目中,能详细说明一下吗?您是否建议将其添加为 sdk 本身的选项?从它的外观和您迄今为止的发现来看,在提出这个想法之前,您似乎需要主题、考虑和测试许多开放式案例。
另外,请检查这是否与您的情况相似。
No need to add it to the SDK, I just want to ask if this development method is feasible
from flutter.
@LanSeLianMa 嗯, 也许我能想到一个简单的逻辑存储在单独的模块而不是 ui 组件中,那么它可能会有帮助,例如散列或解析, 你觉得怎么样?
In fact, it is just to make the project structure clearer. The remaining problem is how to access local files across modules.
from flutter.
@LanSeLianMa
I think this is better to be asked on discord channel for the feasibility rather than asking it here, because it doesn't seem to be a bug report or a feature request but a question whether this approach is feasible or not.
from flutter.
Okay, do you have any recommendations for relevant platforms?
from flutter.
Communities with more active official attention can also be used
from flutter.
@LanSeLianMa
You may post the same in flutter's discord channels as mentioned here for feedback on your idea.
from flutter.
I choose Twitter
from flutter.
This channel https://twitter.com/r_FlutterDev
from flutter.
Discord: https://github.com/flutter/flutter/wiki/Chat
from flutter.
OK, I have successfully entered the Flutter community channel
from flutter.
Closing from here as you can track and follow-up in other platforms to get feedback your on idea.
from flutter.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v
and a minimal reproduction of the issue.
from flutter.
Related Issues (20)
- [CP] Platform View + Android 14 + multi activity fix
- CP macOS 14 fixes for beta and stable
- CP ci.yaml and configs to run on either macOS 13 or 14 for beta and stable
- Upgrade remaining devicelab bots in each pool to macOS 14.5
- Upgrade 25% of chromium bots to macOS 14.5 HOT 1
- [Flutter] Make the framework aware of which view has focus and publish changes through the platform dispatcher. HOT 2
- Upgrade 50% of chromium bots to macOS 14.5
- Upgrade remaining chromium bots in each pool to macOS 14.5
- Upgrade 50% of bots in dart-internal to macOS 14.5
- Scaffold's Current state `isDrawerOpen` parameter returns false in PopScope in flutter 3.22.0 but returns true in 3.19.0 HOT 1
- ☂️ Tracking issue for any infra or test failures with Xcode 16 and iOS 18 Simulators
- Run all flutter/flutter macOS tests using Xcode 16 and iOS 18 simulator
- Run all flutter/packages macOS tests using Xcode 16 and iOS 18 simulator
- Run all flutter/engine macOS tests using Xcode 16 and iOS 18 simulator
- Update .ci.yaml in flutter/flutter to use Xcode 16 and macOS 14
- [webview_flutter_web] Migration to package:web needed for wasm HOT 1
- MouseRegion behavior is inconsistent when upgrading from 3.16.9 to 3.22.1 HOT 5
- ModalRoute Rebuilds Transition Widgets Every Frame HOT 2
- linux-51 is dead. HOT 1
- [process] Adjust Release Process to Include Wiki Updates for Hotfixes
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.