Build static web using Flutter

Chandra Singh 21 Reputation points
2022-05-14T21:42:21.68+00:00

Hi,

I am new to Flutter and wondering if we can deploy Flutter web app as static web application in Azure. Pls advice and share some pointers.

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,173 questions
0 comments No comments
{count} votes

Accepted answer
  1. Takahito Iwasa 4,851 Reputation points MVP Volunteer Moderator
    2022-05-15T20:58:45.59+00:00

    Hi, @Anonymous

    Yes. You can deploy the Flutter Web App on your SWA.
    Static Web Apps only do static hosting, so it doesn't depend on the front-end framework.
    If you need server-side Flutter, you can additionally select and deploy a hosting model or use Azure Functions. Although not mentioned in this thread, Azure Functions does not support DART.

    There is no direct deployment method for Static Web Apps such as FTP, and it is necessary to integrate the deployment pipeline such as GitHub.

    You can probably build a GitHub workflow that integrates with flutter build web by referring to:

    https://github.com/mhadaily/azure-flutter-web-demo/blob/master/.github/workflows/azure-static-web-apps-gentle-dune-0a345d303.yml

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Muhammad Anas Ansari 1 Reputation point
    2022-08-15T15:30:49.2+00:00

    Flutter is not an ideal for static webpages but yes it helps you to create engaging web apps.
    It is perfect for single page application with animations and heavy UI elements.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.