File tree 9 files changed +48
-4
lines changed
9 files changed +48
-4
lines changed Original file line number Diff line number Diff line change 5
5
6
6
"image" : " assets/images/png/pedram.jpg" ,
7
7
"linkedInUrl" : " http://linkedin.com/in/pedram-mohammad-ali-pour-b44721141" ,
8
- "portfolioUrl" : " https://b1101-portfolio.web.app/"
8
+ "portfolioUrl" : " https://b1101-portfolio.web.app/" ,
9
+ "githubUrl" : " https://github.com/P-B1101"
9
10
}
Original file line number Diff line number Diff line change 5
5
6
6
"image" : " assets/images/png/pedram.jpg" ,
7
7
"linkedInUrl" : " http://linkedin.com/in/pedram-mohammad-ali-pour-b44721141" ,
8
- "portfolioUrl" : " https://b1101-portfolio.web.app/"
8
+ "portfolioUrl" : " https://b1101-portfolio.web.app/" ,
9
+ "githubUrl" : " https://github.com/P-B1101"
9
10
}
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ class InfoModel extends Info {
9
9
required super .image,
10
10
required super .linkedInUrl,
11
11
required super .portfolioUrl,
12
+ required super .githubUrl,
12
13
});
13
14
factory InfoModel .fromJson (Map <String , dynamic > json) => InfoModel (
14
15
name: json['name' ],
@@ -18,5 +19,6 @@ class InfoModel extends Info {
18
19
image: json['image' ],
19
20
linkedInUrl: json['linkedInUrl' ] ?? '' ,
20
21
portfolioUrl: json['portfolioUrl' ] ?? '' ,
22
+ githubUrl: json['githubUrl' ] ?? '' ,
21
23
);
22
24
}
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ class Info extends Equatable {
8
8
final String image;
9
9
final String linkedInUrl;
10
10
final String portfolioUrl;
11
+ final String githubUrl;
11
12
12
13
const Info ({
13
14
required this .name,
@@ -17,6 +18,7 @@ class Info extends Equatable {
17
18
required this .image,
18
19
required this .linkedInUrl,
19
20
required this .portfolioUrl,
21
+ required this .githubUrl,
20
22
});
21
23
@override
22
24
List <Object ?> get props => [
@@ -27,6 +29,7 @@ class Info extends Equatable {
27
29
image,
28
30
linkedInUrl,
29
31
portfolioUrl,
32
+ githubUrl,
30
33
];
31
34
32
35
Info copyWith ({
@@ -40,11 +43,14 @@ class Info extends Equatable {
40
43
linkedInUrl: linkedInUrl,
41
44
image: imageUrl ?? image,
42
45
portfolioUrl: portfolioUrl,
46
+ githubUrl: githubUrl,
43
47
);
44
48
45
49
bool get hasLinkedInUrl => linkedInUrl.isNotEmpty;
46
-
50
+
47
51
bool get hasPortfolioUrl => portfolioUrl.isNotEmpty;
48
52
53
+ bool get hasGithubUrl => githubUrl.isNotEmpty;
54
+
49
55
String get getFullName => '$name $lastName ' ;
50
56
}
Original file line number Diff line number Diff line change @@ -358,6 +358,22 @@ class HomePagePhone extends StatelessWidget {
358
358
),
359
359
),
360
360
),
361
+ BlocBuilder <InfoBloc , InfoState >(
362
+ builder: (context, state) => Padding (
363
+ padding: const EdgeInsetsDirectional .only (
364
+ top: 16 ,
365
+ start: 24 ,
366
+ ),
367
+ child: state.info == null ||
368
+ ! state.info! .hasGithubUrl
369
+ ? null
370
+ : QRWidget (
371
+ title:
372
+ Strings .of (context).github_link_label,
373
+ url: state.info! .githubUrl,
374
+ ),
375
+ ),
376
+ ),
361
377
],
362
378
),
363
379
),
Original file line number Diff line number Diff line change @@ -343,6 +343,22 @@ class HomePageWindow extends StatelessWidget {
343
343
),
344
344
),
345
345
),
346
+ BlocBuilder <InfoBloc , InfoState >(
347
+ builder: (context, state) => Padding (
348
+ padding: const EdgeInsetsDirectional .only (
349
+ top: 24 ,
350
+ start: 32 ,
351
+ ),
352
+ child: state.info == null ||
353
+ ! state.info! .hasGithubUrl
354
+ ? null
355
+ : QRWidget (
356
+ title:
357
+ Strings .of (context).github_link_label,
358
+ url: state.info! .githubUrl,
359
+ ),
360
+ ),
361
+ ),
346
362
],
347
363
),
348
364
const SizedBox (height: 32 ),
Original file line number Diff line number Diff line change 21
21
"web_link_label": "Web",
22
22
"linked_in_link_label": "LinkedIn",
23
23
"portfolio_link_label": "Portfolio",
24
+ "github_link_label": "Github",
24
25
"farsi_label": "Persian",
25
26
"english_label": "English"
26
27
}
Original file line number Diff line number Diff line change 21
21
"web_link_label": "وب",
22
22
"linked_in_link_label": "لینکدین",
23
23
"portfolio_link_label": "رزومه آنلاین",
24
+ "github_link_label": "گیت هاب",
24
25
"farsi_label": "فارسی",
25
26
"english_label": "انگلیسی"
26
27
}
Original file line number Diff line number Diff line change @@ -60,4 +60,4 @@ SPEC CHECKSUMS:
60
60
61
61
PODFILE CHECKSUM: 236401fc2c932af29a9fcf0e97baeeb2d750d367
62
62
63
- COCOAPODS: 1.12.1
63
+ COCOAPODS: 1.15.2
You can’t perform that action at this time.
0 commit comments