Quick Guide : Flutter Web _X_ Netlify

Quick Guide : Flutter Web _X_ Netlify

ยท

3 min read

I was inspired to spin up this article because I needed to get my Flutter web projects showcase (UI clones and MVP's) out of just my GitHub README.md file ๐Ÿ˜ฉ into something more descriptive and easy to access by anyone, It was also an advice from a friend about how he shipped his ideas quicky to try them out and break them alongside, plus could serve as an update to this wonderful concise post I saw on Medium. ๐Ÿค—

In X easy steps you are going to take your Flutter Web Project (UI clone, MVP) into a simple, free and easy to use hosting platform "Netlify". ๐Ÿš€

STEP X : Create your project and Build your Flutter Web Project; Since Flutter Web has been in stable release you wont need to go through any stress in achieving this

Taking an assumption that you would want to demo this for a try with the Flutter default Counter App; Create and build your web app for release with the commands below

carbon (7).png

carbon (3).png

STEP X : Use Netlify to host your web app Don't have an account yet !, Alright that's cool, it's as straight forward as signing in with your GitHub and "Authorizing anything Authorizable ๐Ÿ™‚ .

2 ways to host your Web app includes:

  • Manually Deploy (Drag and Drop)

  • Deploy via GitHub netlify.png

For Manual Deploy, locate the build folder in your Flutter project that was autogenerated after you ran the second command in STEP X "above" this STEP X ๐Ÿ’€, Click into the build folder, select the Web folder and then drag and drop it into Netlify

netliiii.png

For via GitHub follow through the instructions on the Netlify dashboard to complete the process, also the procedures in the images below should assist you

  • Select GitHuband wait a bit for Netlify Authorization
  • Configure the Netlify App on GitHub , this redirects you to a window where you select the GitHub Repo you want to host from your profile

oneeee.png

  • Select Repo - ensure it contains the build-web files only
  • Save the Changes

fourrr555.png

Note : If you choose to deploy via GitHub, ensure your repo contains only the build-web files...something like this

Screenshot 2022-11-30 041531.png

Once your done uploading your Flutter web app, you would be given a random url of which you can change by going to Site Setting tab on your Netlify Dashboard

almostttt.png

done.png

And there you go MY HOST APP...Decided to plug up 2 of my old projects to netlify alongside this one PORTFOLIO , MARPP.

Thanks for giving my article a read and I do hope you experience less bugs as you build....Cheers

ย