Giter Club home page Giter Club logo

Comments (27)

darshankawar avatar darshankawar commented on June 7, 2024 1

Removing design doc label as it doesn't seem to be applicable here.

from flutter.

AbdeMohlbi avatar AbdeMohlbi commented on June 7, 2024

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.

AbdeMohlbi avatar AbdeMohlbi commented on June 7, 2024

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.

LanSeLianMa avatar LanSeLianMa commented on June 7, 2024

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?

17 18 19 20

from flutter.

indeedshaw avatar indeedshaw commented on June 7, 2024

Can it be understood that these modules are currently just plugins and not real modules?

from flutter.

LanSeLianMa avatar LanSeLianMa commented on June 7, 2024

It is a real module and can be started independently, similar to Android native sub-module development.

from flutter.

AbdeMohlbi avatar AbdeMohlbi commented on June 7, 2024

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.

LanSeLianMa avatar LanSeLianMa commented on June 7, 2024

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.

21 22

from flutter.

AbdeMohlbi avatar AbdeMohlbi commented on June 7, 2024

See the project size in ur disk

from flutter.

LanSeLianMa avatar LanSeLianMa commented on June 7, 2024

I thought it was the packaging size. This shouldn’t be a problem. Most developers’ productivity tools have enough capacity.

from flutter.

LanSeLianMa avatar LanSeLianMa commented on June 7, 2024

Now there is only one problem left, how to solve the problem of access of local resources between various modules

from flutter.

AbdeMohlbi avatar AbdeMohlbi commented on June 7, 2024

@LanSeLianMa
Also is it possible to share variables between modules back and forth

from flutter.

LanSeLianMa avatar LanSeLianMa commented on June 7, 2024

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.

AbdeMohlbi avatar AbdeMohlbi commented on June 7, 2024

@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.

darshankawar avatar darshankawar commented on June 7, 2024

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.

LanSeLianMa avatar LanSeLianMa commented on June 7, 2024

请问这种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 avatar LanSeLianMa commented on June 7, 2024

@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.

darshankawar avatar darshankawar commented on June 7, 2024

@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.

LanSeLianMa avatar LanSeLianMa commented on June 7, 2024

Okay, do you have any recommendations for relevant platforms?

from flutter.

LanSeLianMa avatar LanSeLianMa commented on June 7, 2024

Communities with more active official attention can also be used

from flutter.

darshankawar avatar darshankawar commented on June 7, 2024

@LanSeLianMa
You may post the same in flutter's discord channels as mentioned here for feedback on your idea.

from flutter.

LanSeLianMa avatar LanSeLianMa commented on June 7, 2024

I choose Twitter

from flutter.

LanSeLianMa avatar LanSeLianMa commented on June 7, 2024

This channel https://twitter.com/r_FlutterDev

from flutter.

FusoraTech avatar FusoraTech commented on June 7, 2024

Discord: https://github.com/flutter/flutter/wiki/Chat

from flutter.

LanSeLianMa avatar LanSeLianMa commented on June 7, 2024

OK, I have successfully entered the Flutter community channel

截屏2024-05-07 22 40 46

from flutter.

darshankawar avatar darshankawar commented on June 7, 2024

Closing from here as you can track and follow-up in other platforms to get feedback your on idea.

from flutter.

github-actions avatar github-actions commented on June 7, 2024

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)

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.