Skip to content

Commit

Permalink
change web renderer to html for performance improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodepapaya committed Sep 30, 2021
1 parent 141088b commit afc44c3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
# run: flutter test
- name: Build Web
run: |
flutter build web
flutter build web --web-renderer html --release
cd build/web
zip -r web-app.zip .
- name: Release Web App
Expand Down
21 changes: 19 additions & 2 deletions lib/about/contact.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,40 +19,57 @@ class Contact extends StatelessWidget {
minRadius: 30,
),
SizedBox(width: 50),
contactIcon(
iconData: FontAwesomeIcons.briefcase,
url:
"https://my-portfolio-ashutosh-singh.s3.ap-south-1.amazonaws.com/resume_ashutosh_singh.pdf",
tooltip: "Ashutosh's Resume",
),
contactIcon(
iconData: FontAwesomeIcons.solidEnvelope,
url: "mailto:[email protected]",
url: "mailto:[email protected]",
tooltip: "Email Ashutosh",
),
contactIcon(
iconData: FontAwesomeIcons.twitter,
url: "https://twitter.com/thecodepapaya",
tooltip: "Ashutosh's Twitter profile",
),
contactIcon(
iconData: FontAwesomeIcons.github,
url: "https://github.com/thecodepapaya",
tooltip: "Ashutosh's GitHub profile",
),
contactIcon(
iconData: FontAwesomeIcons.linkedinIn,
url: "https://linkedin.com/in/ashutoshsingh05as",
tooltip: "Ashutosh's LinkedIn profile",
),
contactIcon(
iconData: FontAwesomeIcons.stackOverflow,
url: "https://stackoverflow.com/users/10505839/ashutosh-singh",
tooltip: "Ashutosh's StackOverflow profile",
),
contactIcon(
iconData: FontAwesomeIcons.discord,
url: "https://discord.com/users/878192996825305128",
tooltip: "Ashutosh's Discord name tag",
),
],
);
}

Widget contactIcon({required IconData iconData, required String url}) {
Widget contactIcon({
required IconData iconData,
required String url,
required String tooltip,
}) {
return IconButton(
onPressed: () {
launch(url);
PortfolioAnalytics.log(LogType.contactClick, property: url);
},
tooltip: tooltip,
icon: FaIcon(
iconData,
size: iconSize,
Expand Down

0 comments on commit afc44c3

Please sign in to comment.