Code Monkey home page Code Monkey logo

Comments (17)

phillwiggins avatar phillwiggins commented on August 21, 2024

from parse-sdk-flutter.

WahdanZ avatar WahdanZ commented on August 21, 2024

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

from parse-sdk-flutter.

WahdanZ avatar WahdanZ commented on August 21, 2024

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

from parse-sdk-flutter.

phillwiggins avatar phillwiggins commented on August 21, 2024

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?

from parse-sdk-flutter.

WahdanZ avatar WahdanZ commented on August 21, 2024

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

from parse-sdk-flutter.

WahdanZ avatar WahdanZ commented on August 21, 2024

i think this article is useful https://www.toptal.com/cross-platform/code-sharing-angular-dart-flutter-bloc

from parse-sdk-flutter.

phillwiggins avatar phillwiggins commented on August 21, 2024

from parse-sdk-flutter.

WahdanZ avatar WahdanZ commented on August 21, 2024

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

from parse-sdk-flutter.

WahdanZ avatar WahdanZ commented on August 21, 2024

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.

from parse-sdk-flutter.

phillwiggins avatar phillwiggins commented on August 21, 2024

from parse-sdk-flutter.

WahdanZ avatar WahdanZ commented on August 21, 2024

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

from parse-sdk-flutter.

phillwiggins avatar phillwiggins commented on August 21, 2024

from parse-sdk-flutter.

rostopira avatar rostopira commented on August 21, 2024

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

from parse-sdk-flutter.

WahdanZ avatar WahdanZ commented on August 21, 2024

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.

from parse-sdk-flutter.

rostopira avatar rostopira commented on August 21, 2024

@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

from parse-sdk-flutter.

phillwiggins avatar phillwiggins commented on August 21, 2024

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

from parse-sdk-flutter.

fischerscode avatar fischerscode commented on August 21, 2024

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

from parse-sdk-flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.