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

cannot build database on web platform #267

Closed
mohammadestk opened this issue Feb 23, 2020 · 2 comments
Closed

cannot build database on web platform #267

mohammadestk opened this issue Feb 23, 2020 · 2 comments

Comments

@mohammadestk
Copy link

it seems library does not working on web platform. it's working fine on android and ios.
in below code, app hanging on builder.build.

  try {
    final builder = $FloorAppDatabase.databaseBuilder('food.db');
    final database = await builder.build();
  } catch (e) {
    print(e);
  }
@mohammadestk mohammadestk changed the title database cannot build on web platform cannot database build on web platform Feb 23, 2020
@mohammadestk mohammadestk changed the title cannot database build on web platform cannot build database on web platform Feb 23, 2020
@cassioseffrin
Copy link
Contributor

Although floor sintaxe much better than moor, I don't see any docs about web support for floor.

Moor have an experimental web support, take a look: https://moor.simonbinder.eu/web/

I hope the floor project have plans to implement in the future.

@vitusortner
Copy link
Collaborator

Floor, currently, doesn't support Flutter for web. As of now, it can be used on iOS, Android and macOS.

Closing this in favor of having a single issue for multi-platform support #228

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants