aws-amplify / amplify-flutter

A declarative library with an easy-to-use interface for building Flutter applications on AWS.
https://docs.amplify.aws
Apache License 2.0
1.31k stars 242 forks source link

Web support for amplify-flutter #234

Closed FadilaNuzha closed 1 year ago

FadilaNuzha commented 3 years ago

Bug Description I created a simple web app to connect to AWS amplify.

image

But it's throwing the below error.

image

I have tried 'flutter clear', 'pub get' and creating a whole new project, but nothing works.

To Reproduce Steps to reproduce the behavior:

  1. Follow steps as shown as 'https://aws.amazon.com/getting-started/hands-on/build-flutter-app-amplify/'
  2. flutter run -d chrome

Expected behavior Console should print 'Successfully configured Amplify 🎉'

Platform [] Flutter Web

Smartphone (please complete the following information):

haverchuck commented 3 years ago

Hi @FadilaNuzha - We don't support Flutter web yet, but we know that this (as well as desktop support) is something that is desired. I'm marking this issue as a feature request.

jamesonwilliams commented 3 years ago

(For those who are interested, support for Flutter Desktop is being tracked separately, in #133.)

FadilaNuzha commented 3 years ago

Hi @FadilaNuzha - We don't support Flutter web yet, but we know that this (as well as desktop support) is something that is desired. I'm marking this issue as a feature request.

Hi @haverchuck, I tried this in an Android device and the emulator as well. Still I'm unable to configure Amplify. So I'll rename the issue. Am I missing something in the process?

FadilaNuzha commented 3 years ago

Hi @FadilaNuzha - We don't support Flutter web yet, but we know that this (as well as desktop support) is something that is desired. I'm marking this issue as a feature request.

Hi @haverchuck, I tried this in an Android device and the emulator as well. Still I'm unable to configure Amplify. So I'll rename the issue. Am I missing something in the process?

Actually it started working with the emulator, so I guess it's a web issue.

kenspy commented 3 years ago

:+1: +1 I came across the same issue while migrating my Flutter PWA application to Amplify, I'm glad someone (@haverchuck ) is working on it.

natedenh commented 3 years ago

+1 for web

Thanks for working on this

shar154 commented 3 years ago

Web support for amplify flutter would be something I would vote for.

bjoerndotsol commented 3 years ago

I already voted for this but also want to show some support for this topic. Personally, I prefer using a PWA than installing a full application on my computer.

Web is a super fast and easy way to make your service available on a broad range of devices and onboard new users who can, later on, download the app. But it reduces the burden for them to start using the product in the first place significantly.

Example: I don't have an Amazon app on my computer and I wouldn't install it if it would be available, but I use my computer all the time to shop on Amazon.

What you should also consider is that users can:

Therefore I would work on this integration before I start supporting native Desktop OS, but that's just my opinion and I don't want to offend anybody with it!

Thank you so much for working on these topics! Cannot wait to get it on my hands! So far you did a wonderful job with the Flutter SDK :)

roberthelmick08 commented 3 years ago

+1 for web support

rdamus commented 3 years ago

+1... Amplify would set the tone for Flutter web as currently even Firebase seems to only have experimental support for web apps with Flutter... seems like a workaround for using Cognito has been developed in Dart - https://pub.dev/packages/amazon_cognito_identity_dart_2

drowl-developer commented 3 years ago

+1 for web support

capraqua commented 3 years ago

+1 for web support

stuartwk commented 3 years ago

For those that just connect Amplify to a github repo for simple hosting, I got it working with the following build settings...

version: 1
frontend:
  phases:
    preBuild:
      commands:
      - git clone https://github.com/flutter/flutter.git -b stable --depth 1
      - export PATH="$PATH:`pwd`/flutter/bin"
    # IMPORTANT - Please verify your build commands
    build:
      commands: 
      - flutter build web -t ./lib/main.dart
  artifacts:
    # IMPORTANT - Please verify your build output directory
    baseDirectory: build/web
    files:
      - '**/*'
  cache:
    paths: []
clinsign commented 3 years ago

+1 for web support Thanks for working on this

mheinis commented 3 years ago

+1 for web support (this was actually the reason we wanted to use Flutter)

roelvandenbranddvc commented 3 years ago

+1 for supporting Flutter Web. We would like to use all platforms for which Flutter is available. But on web is our main goal.

BasKroes commented 3 years ago

+1 for supporting Flutter Web :-)

gauravmehta13 commented 3 years ago

+1

ghost commented 3 years ago

+1

jamesonwilliams commented 3 years ago

The community has currently built (at least) two pure-Dart libraries to interact with Cognito from Flutter Web:

Additionally, here's a customer asking about Flutter web support for Cognito on StackOverflow:

https://stackoverflow.com/questions/66796518/how-to-login-with-cognito-in-flutter-web

dedvalson commented 3 years ago

+1

bluesky2091 commented 3 years ago

+1

deekob commented 3 years ago

+1

bobosette commented 3 years ago

+1 🙏

matthewchung74 commented 3 years ago

+1

gnumonk commented 3 years ago

+1, Since Flutter Web is not Stable, this feature is very much required.

BerndWessels commented 3 years ago

+1 Just want to stress that the strength of flutter is cross platform and that equal support of the major platforms Android, IOS and WEB is essential for the success of flutter and amplify. Especially HUGE companies like AWS should be able to provide up to date versions of their products supporting major milestones like Flutter 2. Web and nullish is really a basic essential to be supported.

matthewchung74 commented 3 years ago

I'm very sad, but just switched to firebase because I need web support.

kenspy commented 3 years ago

I'm very sad, but just switched to firebase because I need web support.

Sad indeed... My projects are on hold until they release support for web. For some reason, I have more confidence in Amplify than Firebase.

danielvtan commented 3 years ago

+1

mufumade commented 3 years ago

+1

SalahAdDin commented 3 years ago

+1

dospringer commented 3 years ago

+1

mtcahill57 commented 3 years ago

+1

bobbyqul commented 3 years ago

+1

kresovic-milos commented 3 years ago

+1

finkj commented 3 years ago

+1

THM068 commented 3 years ago

+1 Web support

Krystian95 commented 3 years ago

+1 for web support Thanks for working on this

FascinateDK commented 3 years ago

+1

finkj commented 3 years ago

@haverchuck @jamesonwilliams any news on this topic? Is there a roadmap? Thanks!

jamesonwilliams commented 3 years ago

@haverchuck @jamesonwilliams any news on this topic? Is there a roadmap? Thanks!

@finkj I am no longer working on this project.

SalahAdDin commented 3 years ago

@haverchuck @jamesonwilliams any news on this topic? Is there a roadmap? Thanks!

@finkj I am no longer working on this project.

did you take another alternative?

gabriel-gsoftware commented 3 years ago

+1

shafersystems commented 3 years ago

+1

jperezr21 commented 3 years ago

+1

spscally commented 3 years ago

+1

ranvirm commented 3 years ago

+1

borainceler commented 3 years ago

+1

blattr commented 3 years ago

+1