OTTAA-Project / ottaa_project_flutter

Join us to create the first predictive augmentative communication platform for speech-impaired children!
https://ottaa-project.github.io/
GNU General Public License v3.0
10 stars 4 forks source link

[Feat]: Web version #220

Closed hectoritr closed 1 year ago

hectoritr commented 1 year ago

Contact Details

No response

What is this about?

As a user I want to use OTTAA in a Web Browser

Where do you want to see this implemented?

Chrome

Code of Conduct

Da-PC commented 1 year ago

@emirchus how can I run the app on web? Can you write here the process please

emirchus commented 1 year ago

@emirchus how can I run the app on web? Can you write here the process please

Leave me to push some changes, and then it will available to run!

How to run on Web

Command:

It is necessary to run in port 3000 cause it is authorized on Firebase

flutter run -d {explorer} --web-port 3000

Example

In my case, I use google chrome so I run:


flutter run -d chrome --web-port 3000                                                                                                                                                                    ```
emirchus commented 1 year ago

My changes are all ready @hectoritr @Da-PC

git fetch origin
git checkout feat/220-feat-web-version
hectoritr commented 1 year ago

@emirchus what's missing to close this issue? Let's close it

hectoritr commented 1 year ago

@asimjawad the app should be available on dev.ottaaproject.com Can you check what's happening and make it work?

asimjawad commented 1 year ago

ok

asimjawad commented 1 year ago

@emirchus

I am listing down some errors, which I am founding, can you take a look at them.

asimjawad commented 1 year ago

rors.dart:299 Uncaught (in promise) Error: Assertion failed: file:///Users/asimjawad/.pub-cache/hosted/pub.dev/get_it-7.2.0/lib/get_it_impl.dart:372:7 instanceFactory != null "Object/factory with type AboutRepository is not registered inside GetIt. \n(Did you accidentally do GetIt sl=GetIt.instance(); instead of GetIt sl=GetIt.instance;\nDid you forget to register it?)" packages/riverpod/src/stack_trace.dart 9:11 packages/riverpod/src/result.dart 110:17 when packages/riverpod/src/framework/element.dart 200:17 get requireState packages/riverpod/src/framework/provider_base.dart 106:19 read packages/riverpod/src/framework/container.dart 218:20 read packages/riverpod/src/framework/element.dart 692:23 read packages/ottaa_project_flutter/application/router/app_router.dart 59:36 dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54 runBody dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:5 _async packages/ottaa_project_flutter/application/router/app_router.dart 58:25 packages/go_router/src/redirection.dart 91:74 processRedirect p

asimjawad commented 1 year ago

rors.dart:299 Uncaught (in promise) Error: Assertion failed: file:///Users/asimjawad/.pub-cache/hosted/pub.dev/get_it-7.2.0/lib/get_it_impl.dart:372:7 instanceFactory != null "Object/factory with type AboutRepository is not registered inside GetIt. \n(Did you accidentally do GetIt sl=GetIt.instance(); instead of GetIt sl=GetIt.instance;\nDid you forget to register it?)" packages/riverpod/src/stack_trace.dart 9:11 packages/riverpod/src/result.dart 110:17 when packages/riverpod/src/framework/element.dart 200:17 get requireState packages/riverpod/src/framework/provider_base.dart 106:19 read packages/riverpod/src/framework/container.dart 218:20 read packages/riverpod/src/framework/element.dart 692:23 read packages/ottaa_project_flutter/application/router/app_router.dart 59:36 dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54 runBody dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:5 _async packages/ottaa_project_flutter/application/router/app_router.dart 58:25 packages/go_router/src/redirection.dart 91:74 processRedirect p

asimjawad commented 1 year ago

Error while trying to load an asset: Failed to load asset at "assets/assets/i18n/en_GB.json" (404) Error: Exception: Language not found

packages/ottaa_project_flutter/application/router/app_router.dart 68:25

these 2 occurs when I tried to login from the app

asimjawad commented 1 year ago

and this one too

caught (in promise) Error: Assertion failed: file:///Users/asimjawad/.pub-cache/hosted/pub.dev/riverpod-2.3.2/lib/src/framework/element.dart:676:7 didChangeDependency == false "Cannot use ref functions after the dependency of a provider changed but before the provider rebuilt" at Object.throw [as throw] (errors.dart:266:49) at Object.assertFailed (errors.dart:29:3) at [_assertNotOutdated] (element.dart:676:31) at ProviderElement.__.watch (element.dart:700:5) at app_router.dart:68:25 at Generator.next () at async_patch.dart:45:50 at _RootZone.runUnary (zone.dart:1660:54) at _FutureListener.thenAwait.handleValue (future_impl.dart:147:18) at handleValueCallback (future_impl.dart:767:44) at _Future._propagateToListeners (future_impl.dart:796:13) at async._AsyncCallbackEntry.new.callback (future_impl.dart:431:9) at Object._microtaskLoop (schedule_microtask.dart:40:11) at _startMicrotaskLoop (schedule_microtask.dart:49:5) at async_patch.dart:166:15 t