Skip to content

support angular dart #110

New issue

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

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

Already on GitHub? # to your account

Closed
WahdanZ opened this issue Mar 9, 2019 · 17 comments
Closed

support angular dart #110

WahdanZ opened this issue Mar 9, 2019 · 17 comments

Comments

@WahdanZ
Copy link
Contributor

WahdanZ commented Mar 9, 2019

it will be useful if it supports angular dart, so is there any planning to support it.

@phillwiggins
Copy link
Member

phillwiggins commented Mar 9, 2019 via email

@WahdanZ
Copy link
Contributor Author

WahdanZ commented Mar 9, 2019

yes for sure I'm going to use it on a project and I need to support flutter and angular dart

@WahdanZ
Copy link
Contributor Author

WahdanZ commented Mar 30, 2019

I found this one https://pub.dartlang.org/packages/sembast
but I think it will be easy to replace shared_preferences with it but when I try to do this I found another flutter dependances like package_info I think we could separate parse client support dart VM and for flutter, we could like installation, and push notification in another module.
because for the push notification if you are going to support it, it will require platform channel

@phillwiggins
Copy link
Member

Hey Ahmed,

Your correct in suggesting Sembast, I'm using that in the example project in the repository layer at the moment, it does seem like a possible solution. At the moment, I just haven't had time to implement it.

That's great suggestion with regards to separating packages. I will look into that too, and possible release it as 2 libraries.

Do you have any experience in this type of work? I could definitely use some help?

@WahdanZ
Copy link
Contributor Author

WahdanZ commented Mar 30, 2019

I don't have much experience in Dart, but I have experience in Android and iOS,
I will try to do some investigation on that and back for you

@WahdanZ
Copy link
Contributor Author

WahdanZ commented Mar 30, 2019

@phillwiggins
Copy link
Member

phillwiggins commented Mar 30, 2019 via email

@WahdanZ
Copy link
Contributor Author

WahdanZ commented Mar 30, 2019

yeah I know bloc and used it an inside project, I just talking about the concept and how he split and used the bloc module for both Flutter and angular also for the interface of [preferences_interface](https://github.com/budo385/todo_bloc_app/blob/master/bloc/lib/src/repository/preferences/preferences_interface.dart and )
,

okay I cloned the repo and I will keep tracing and thanks for your great job

@WahdanZ
Copy link
Contributor Author

WahdanZ commented Apr 17, 2019

hello I did some modification the code and make parse code depends only on Dart and I test it on Dart VM and web and it works successfully the only limitation with PraseFile I used sembast as database also I make optional to chose I database you want to depend on shared_preferences or and kind of db
just implement the interface and implement DB class with the way you like.

@phillwiggins
Copy link
Member

phillwiggins commented Apr 17, 2019 via email

@WahdanZ
Copy link
Contributor Author

WahdanZ commented Apr 17, 2019

yes I will clean and organize the code and make pull request ASAP maybe at the end of the week

@phillwiggins
Copy link
Member

phillwiggins commented Apr 17, 2019 via email

@rostopira
Copy link
Contributor

I think Flutter Web is a better option and requires less work to be done
It's merging in flutter master branch already, I was able even to run some simple project
shared_preferences can be easily ported to flutter web in 30 minutes or so

@WahdanZ
Copy link
Contributor Author

WahdanZ commented Jun 23, 2019

I try to test the SDK on sample flutter web app, but it's doesn't work because it depends on some platform channel, that's not supported on flutter web below the errors that I got
You have a dependency on flutter which is not supported for flutter_web tech preview. See https://flutter.dev/web for more details.
You have a dependency on path_provider which is not supported for flutter_web tech preview. See https://flutter.dev/web for more details.
You have a dependency on shared_preferences which is not supported for flutter_web tech preview. See https://flutter.dev/web for more details.

@rostopira
Copy link
Contributor

rostopira commented Jun 24, 2019

@WahdanZ I weren't expecting interest in it, but well
Current flutter web manual doesn't expect using master branch, but a fork
To run using flutter web from master you have to

  1. Create web directory with index.html in it:
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title></title>
  <script defer src="main.dart.js" type="application/javascript"></script>
</head>
<body>
</body>
</html>
  1. Run export FLUTTER_WEB=true (lin/mac, dunno what to use in windows)
  2. Check that web device appeared in flutter devices
  3. Run flutter run -d web

@phillwiggins
Copy link
Member

There's not been much movement on this recently. Are we safe to close?

@fischerscode
Copy link
Contributor

I am now closing this. Feel free to reopen if there is still a problem.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants