Comments (11)
Hi @KieranLafferty,
I'm sorry but at the moment we have no example on Web.
The biggest problem right now is the moor library: we need to implement the web part, but I didn't look into that yet.
The good news is that web support it's in our backlog, we'll keep you updated
from stream-chat-flutter.
thanks @imtoori this repo has a working example of moor on web/ios/android/mac/windows/linux if you need a reference point https://github.com/rodydavis/moor_shared
from stream-chat-flutter.
@rohan20 check out this section of the readme https://github.com/GetStream/stream-chat-flutter/tree/master/packages/stream_chat_persistence#flutter-web
I think this should work, even using the higher level package
from stream-chat-flutter.
@imtoori Perfect! Thank you.
I also ended up using this to fetch the 2 files instead of getting them from the release: https://github.com/rodydavis/moor_shared
from stream-chat-flutter.
The latest sdk version
stream_chat_flutter: ^1.5.2
stream_chat_persistence: ^1.5.1
break again in web
../../development/flutter/.pub-cache/hosted/pub.dartlang.org/moor-3.4.0/lib/src/ffi/database_tracker.dart:1:8: Error: Not found: 'dart:ffi'
import 'dart:ffi';
^
../../development/flutter/.pub-cache/hosted/pub.dartlang.org/sqlite3-0.1.8/lib/src/api/database.dart:1:8: Error: Not found: 'dart:ffi'
import 'dart:ffi';
^
../../development/flutter/.pub-cache/hosted/pub.dartlang.org/sqlite3-0.1.8/lib/src/api/sqlite3.dart:1:8: Error: Not found: 'dart:ffi'
import 'dart:ffi';
^
../../development/flutter/.pub-cache/hosted/pub.dartlang.org/sqlite3-0.1.8/lib/src/api/statement.dart:1:8: Error: Not found: 'dart:ffi'
import 'dart:ffi';
from stream-chat-flutter.
Agent comment from Séni Gueye in Zendesk ticket #4510:
Hi,
Thanks for getting in touch.
I'm passing this on to our Flutter development team for more insights.
We'll get back to you shortly.
Best regards,
Seni
from stream-chat-flutter.
Agent comment from Stephen Hodgetts in Zendesk ticket #4510:
Closing ZD ticket, feature request
from stream-chat-flutter.
Just a follow up to this. I've found that simply including stream_chat_flutter
as a dependency in my project breaks the entire project's ability to build/run on flutter web. Even if adding web support isn't something that will happen soon could you fix the build issues that arise from including this as a dependency on web
here's the error I get when building for web
Launching lib/main.dart on Chrome in debug mode...
Unhandled exception:
InvalidType doesn't have nullability.
#0 InvalidType.nullability (package:kernel/ast.dart:6750:34)
#1 ProgramCompiler._mustBeNonNullable (package:dev_compiler/src/kernel/compiler.dart:3145:14)
#2 ProgramCompiler._emitArgumentInitializers.initParameter (package:dev_compiler/src/kernel/compiler.dart:3185:18)
#3 ProgramCompiler._emitArgumentInitializers (package:dev_compiler/src/kernel/compiler.dart:3207:20)
#4 ProgramCompiler._emitConstructorBody (package:dev_compiler/src/kernel/compiler.dart:1369:16)
#5 ProgramCompiler._emitConstructor.<anonymous closure>.<anonymous closure> (package:dev_compiler/src/kernel/compiler.dart:1349:19)
#6 ProgramCompiler._superDisallowed (package:dev_compiler/src/kernel/compiler.dart:3138:24)
#7 ProgramCompiler._emitConstructor.<anonymous closure> (package:dev_compiler/src/kernel/compiler.dart:1348:15)
from stream-chat-flutter.
@KieranLafferty I'll try to do it, but it's not our first priority given that Flutter web is still in beta
from stream-chat-flutter.
Closing this since now the SDK builds on for web
from stream-chat-flutter.
@imtoori Can you please help figure out what I may be doing incorrectly? I have issues with moor
on web and hence setUser
fails.
I'm on stream_chat_flutter: ^0.2.21
. I know stream_chat_flutter
isn't compatible with Web but I assume that's only for the UI part? setUser
should still work I suppose. Or should I use stream_chat_flutter_core
even for setUser
?
Thanks.
from stream-chat-flutter.
Related Issues (20)
- stream channel bottom sheet Expected 0 type arguments HOT 2
- ../../../.pub-cache/hosted/pub.dev/stream_chat_flutter-5.3.0/lib/src/bottom_sheets/stream_channel_info_bottom_sheet.dart:322:1: Error: Expected 0 type arguments. HOT 7
- Add ability to mark a channel as unread HOT 4
- When user on android tries to download .doxc it downloads .zip folder HOT 2
- spaceBetweenActions not working HOT 4
- Special characters in filenames can lead to "AccessDeniedAccess denied" page on stream-io-cdn.com on iOS HOT 2
- StreamMediaAttachmentThumbnail is still inaccessible in 7.1.0 HOT 2
- support to customize the duration of scrolling to bottom HOT 2
- Reaction Picker Tail is always shown when the Reaction Picker is enabled in the default message widget HOT 3
- Creating a new user doesn't always work HOT 3
- First message doesn't send HOT 2
- Filtering does not work when querying channels HOT 9
- Release 7.2.0 has wrong dependency restrictions for connectivity_plus HOT 5
- always showing 'You must have a Stream Chat Theme widget at the top of your widget tree' even if it is wrap HOT 4
- Version issues 7.2 'A value of type 'Stream<List<ConnectivityResult>>' can't be assigned to a variable of type 'Stream<ConnectivityResult>?' HOT 25
- type '_$Loading<int, Channel>' is not a subtype of type 'Success<int, Channel>' in type cast HOT 2
- Attachment Error : Unhandled Exception: FormatException: Illegal scheme character HOT 2
- HttpException: Bad file descriptor on connect call HOT 2
- 7.2.0-hotfix.1 not working HOT 4
- Exception caught by image resource service: Invalid argument(s): No host specified in URI HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stream-chat-flutter.