---
title: "thilina dilshan (@Thilina) | Hashnode"
description: "Software developer. Read the latest articles by thilina dilshan on Hashnode."
url: "https://hashnode.com/@Thilina"
---

@Thilina

# thilina dilshan

@Thilina · Joined January 2021

Software developer

### [Scroll to bottom](https://thilina.hashnode.dev/scroll-to-bottom?utm_source=hashnode&utm_medium=feed)

document .getElementById("scrollTo") .scrollIntoView({ behavior: "smooth", block: "start" });

1 min read · [thilina.hashnode.dev](https://thilina.hashnode.dev/scroll-to-bottom?utm_source=hashnode&utm_medium=feed)

[Dec 10, 2021](https://hashnode.com/posts/scroll-to-bottom/61b37982b055806a4b00cfd1)

### [Sound from browser](https://thilina.hashnode.dev/sound-from-browser?utm_source=hashnode&utm_medium=feed)

const speak = (msg) => { const sp = new SpeechSynthesisUtterance(msg); \[sp.voice\] = speechSynthesis.getVoices(); speechSynthesis.speak(sp); }; speak("Hellow world");

1 min read · [thilina.hashnode.dev](https://thilina.hashnode.dev/sound-from-browser?utm_source=hashnode&utm_medium=feed)

[Oct 3, 2021](https://hashnode.com/posts/sound-from-browser/6159f28ead6beb6f6506d9c0)

### [Nest.js authGuard](https://thilina.hashnode.dev/nestjs-authguard?utm_source=hashnode&utm_medium=feed)

/\* eslint-disable prettier/prettier \*/ import { CanActivate, ExecutionContext, Injectable } from '@nestjs/common'; import { InjectModel } from '@nestjs/mongoose'; import { Model } from 'mongoose'; import { Observable } from 'rxjs'; import { User } fr...

1 min read · [thilina.hashnode.dev](https://thilina.hashnode.dev/nestjs-authguard?utm_source=hashnode&utm_medium=feed)

[Jun 4, 2021](https://hashnode.com/posts/nestjs-authguard/60b9d8e4d7e1e779f671cb75)

### [Flutter web app deploy to firebase](https://thilina.hashnode.dev/flutter-web-app-deploy-to-firebase?utm_source=hashnode&utm_medium=feed)

flutter build web firebase init hosting --> directory build/web firebase deploy --only hosting

1 min read · [thilina.hashnode.dev](https://thilina.hashnode.dev/flutter-web-app-deploy-to-firebase?utm_source=hashnode&utm_medium=feed)

[May 31, 2021](https://hashnode.com/posts/flutter-web-app-deploy-to-firebase/60b4bdb622ce215158054fa9)

### [Flutter app icons and splash screen](https://thilina.hashnode.dev/flutter-app-icons-and-splash-screen?utm_source=hashnode&utm_medium=feed)

App Icons To generate icons for flutter app we have a nice package call flutter\_launcher\_icons. We can use it for generate icons. To add this package go to pubspec.yaml file dev\_dependencies: flutter\_launcher\_icons: "^0.8.0" flutter\_icons: andro...

1 min read · [thilina.hashnode.dev](https://thilina.hashnode.dev/flutter-app-icons-and-splash-screen?utm_source=hashnode&utm_medium=feed)

[May 25, 2021](https://hashnode.com/posts/flutter-app-icons-and-splash-screen/60acfea361f5f47b572b7e66)
