Skip to content

Commit afc44c3

Browse files
committed
change web renderer to html for performance improvement
1 parent 141088b commit afc44c3

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
# run: flutter test
4242
- name: Build Web
4343
run: |
44-
flutter build web
44+
flutter build web --web-renderer html --release
4545
cd build/web
4646
zip -r web-app.zip .
4747
- name: Release Web App

lib/about/contact.dart

+19-2
Original file line numberDiff line numberDiff line change
@@ -19,40 +19,57 @@ class Contact extends StatelessWidget {
1919
minRadius: 30,
2020
),
2121
SizedBox(width: 50),
22+
contactIcon(
23+
iconData: FontAwesomeIcons.briefcase,
24+
url:
25+
"https://my-portfolio-ashutosh-singh.s3.ap-south-1.amazonaws.com/resume_ashutosh_singh.pdf",
26+
tooltip: "Ashutosh's Resume",
27+
),
2228
contactIcon(
2329
iconData: FontAwesomeIcons.solidEnvelope,
24-
url: "mailto:[email protected]",
30+
url: "mailto:[email protected]",
31+
tooltip: "Email Ashutosh",
2532
),
2633
contactIcon(
2734
iconData: FontAwesomeIcons.twitter,
2835
url: "https://twitter.com/thecodepapaya",
36+
tooltip: "Ashutosh's Twitter profile",
2937
),
3038
contactIcon(
3139
iconData: FontAwesomeIcons.github,
3240
url: "https://github.com/thecodepapaya",
41+
tooltip: "Ashutosh's GitHub profile",
3342
),
3443
contactIcon(
3544
iconData: FontAwesomeIcons.linkedinIn,
3645
url: "https://linkedin.com/in/ashutoshsingh05as",
46+
tooltip: "Ashutosh's LinkedIn profile",
3747
),
3848
contactIcon(
3949
iconData: FontAwesomeIcons.stackOverflow,
4050
url: "https://stackoverflow.com/users/10505839/ashutosh-singh",
51+
tooltip: "Ashutosh's StackOverflow profile",
4152
),
4253
contactIcon(
4354
iconData: FontAwesomeIcons.discord,
4455
url: "https://discord.com/users/878192996825305128",
56+
tooltip: "Ashutosh's Discord name tag",
4557
),
4658
],
4759
);
4860
}
4961

50-
Widget contactIcon({required IconData iconData, required String url}) {
62+
Widget contactIcon({
63+
required IconData iconData,
64+
required String url,
65+
required String tooltip,
66+
}) {
5167
return IconButton(
5268
onPressed: () {
5369
launch(url);
5470
PortfolioAnalytics.log(LogType.contactClick, property: url);
5571
},
72+
tooltip: tooltip,
5673
icon: FaIcon(
5774
iconData,
5875
size: iconSize,

0 commit comments

Comments
 (0)