You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/docs/intro.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,23 +8,23 @@ Let's find out how to implement a Modular structure in your project.
8
8
9
9
## What is Modular?
10
10
11
-
The Modular proposes to solve two problems:
11
+
Modular proposes to solve two problems:
12
12
- Modularized routes.
13
13
- Modularized Dependency Injection.
14
14
15
-
In a monolithic, where we have our entire application as a single module, we design our software quickly and
16
-
elegant taking advantage of all the amazing features of Flutter💙. However, producing a larger app in a "monolithic" way
17
-
can generate technical debt in both maintenance and scalability. With this in mind, the developers adopted architectural strategies to better divide the code, minimizing the negative impacts on the project's maintainability and scalability..
15
+
In a monolithic architecture, where we have our entire application as a single module, we design our software in a quick and
16
+
elegant way, taking advantage of all the amazing features of Flutter💙. However, producing a larger app in a "monolithic" way
17
+
can generate technical debt in both maintanance and scalability. With this in mind, developers adopted architectural strategies to better divide the code, minimizing the negative impacts on the project's maintainability and scalability..
18
18
19
19
By better dividing the scope of features, we gain:
20
20
21
21
- Improved understanding of features.
22
-
- Less break changes.
22
+
- Less breaking changes.
23
23
- Add new non-conflicting features.
24
24
- Less blind spots in the project's main business rule.
25
25
- Improved developer turnover.
26
26
27
-
With the most readable code, we extend the life of the project. See example of a standard MVC with 3 features(Auth, Home, Product):
27
+
With a more readable code, we extend the life of the project. See example of a standard MVC with 3 features(Auth, Home, Product):
28
28
29
29
### A typical MVC
30
30
@@ -75,17 +75,17 @@ Let's see how the structure looks when we divide by scope:
75
75
76
76
What we did in this structure was to continue using MVC, but this time in scope. This means that
77
77
each feature has its own MVC, and this simple approach solves many scalability and maintainability issues.
78
-
We call this approach "Smart Structure". There were still two things that were Global and that clashed with the structure itself and so we created Modular to solve this impasse.
78
+
We call this approach "Smart Structure". But two things were still Global and clashed with the structure itself, so we created Modular to solve this impasse.
79
79
80
80
In short: Modular is a solution to modularize the route and dependency injection system, making each scope have
81
81
its own routes and injections independent of any other factor in the structure.
82
-
We create an object to group the Routes and Injections and call it**Modules**.
82
+
We create objects to group the Routes and Injections and call them**Modules**.
83
83
84
84
85
85
86
86
## Ready to get started?
87
87
88
-
Modular is not only ingenious for doing something amazing like componentizing Routes and Dependency Injections, it's amazing.
88
+
Modular is not only ingenious for doing something amazing like componentizing Routes and Dependency Injections, it's amazing
89
89
for being able to do all this simply!
90
90
91
91
Go to the next topic and start your journey towards an intelligent structure.
@@ -94,15 +94,15 @@ Go to the next topic and start your journey towards an intelligent structure.
94
94
95
95
- Does Modular work with any state management approach?
96
96
- Yes, the dependency injection system is agnostic to any kind of class
97
-
including the reactivity that make up state management.
97
+
including the reactivity that makes up state management.
98
98
99
99
- Can I use dynamic routes or Wildcards?
100
100
- Yes! The entire route tree responds as on the Web. Therefore, you can use dynamic parameters,
101
101
query, fragments or simply include a wildcard to enable a redirect
102
102
to a 404 page for example.
103
103
104
104
- Do I need to create a Module for all features?
105
-
- No. You can create a module only when you think it's necessary or when the feature is no longer a part
106
-
the scope in which it is being worked.
105
+
- No. You can create a module only when you think it's necessary or when the feature is no longer a part of
0 commit comments