Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Flutter for Web support #3974

Open
3 tasks done
salihgueler opened this issue Dec 11, 2024 · 1 comment
Open
3 tasks done

[Feature Request] Flutter for Web support #3974

salihgueler opened this issue Dec 11, 2024 · 1 comment
Labels
feature-request New feature or request

Comments

@salihgueler
Copy link
Member

Before opening, please confirm:

Amplify Hosting feature

Frontend builds, One click deploy

Is your feature request related to a problem? Please describe:

According to the StackOverflow survey in 2024, Flutter is the biggest cross-platform development SDK (with 9.4%) for building apps. Right now AWS Amplify does not support hosting Flutter Web applications.

Describe how you'd like this feature to work

It can immediately understand if the Flutter app has Web support, deploy it by getting a build for it. We will have the Flutter SDK already loaded and ready to be used to build the app. With custom deployments this will work like the following:

version: 1
backend:
  phases:
    build:
      commands:
        - npm ci --cache .npm --prefer-offline
        - npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID --outputs-format dart --outputs-out-dir lib
frontend:
  phases:
    preBuild:
      commands:
        - echo "Installing Flutter SDK"
        - git clone https://github.com/flutter/flutter.git -b stable --depth 1
        - export PATH="$PATH:$(pwd)/flutter/bin"
        - flutter config --no-analytics
        - flutter doctor
    build:
      commands:
        - echo "Installing dependencies"
        - flutter pub get
        - echo "Building Flutter web application with WASM support"
        - flutter build web
  artifacts:
    baseDirectory: build/web
    files:
      - '**/*'
  cache:
    paths:
      - flutter/.pub-cache
@salihgueler salihgueler added the feature-request New feature or request label Dec 11, 2024
Copy link

This has been identified as a feature request. If this feature is important to you, we strongly encourage you to give a 👍 reaction on the request. This helps us prioritize new features most important to you. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant