-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.txt
49 lines (36 loc) · 1.39 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// build structure folders
// create utils -> config
// create app Colors && app string && Hex Color --> core/utils
// handle font && images in pub spec and create their folder in project
// add font -- variable in app strings
// add images -- create core / utils / assets manger to deal with images
/* create routes -- config/app routes
1- anonymous routing (small projects)
2- named routes ( small and medium projects )
3 - generate route (big projects) --> will use it
*/
// add media query extension
// --->> domain layer
// create product entity
// create use case and error < /core > using call and zDart
// create repositories
// ----------- data layer ----------------
// create product model
// work in repositories
// error / network info --> to check network state if connected get data from remote else get data from cached
// dataSources --> create product local && product remote (data sources construct)
// create core/error / exceptions
// complete repositories
// use internet_connection_checker package to check internet --> create NetworkInfoImpl in NetworkInfo
// finish product remote data
----------------------------------------------------------
// if there is params like login page
/*
class LogIn extends Equatable{
final String name ;
final String password;
const LogIn(this.name, this.password);
@override
List<Object?> get props => [name , password];
}
*/