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

[Question] Does this have null safety? #174

Open
RegisSaffi opened this issue May 28, 2021 · 5 comments
Open

[Question] Does this have null safety? #174

RegisSaffi opened this issue May 28, 2021 · 5 comments
Labels
question Further information is requested wontfix This will not be worked on

Comments

@RegisSaffi
Copy link

I know it is no longer in development, but I recently migrated my app to null safety and parsed_text which this library depends on was causing problems, My chat implementation was working properly before migrating, I want to know if there is official implementation of null safety for this library because I can't see it in pub.dev and the one I downloaded dash_chat: ^1.1.15-nullsafety has problems.

@RegisSaffi RegisSaffi added the question Further information is requested label May 28, 2021
@fayeed
Copy link
Owner

fayeed commented May 29, 2021

You should try 1.1.16

@fayeed
Copy link
Owner

fayeed commented May 29, 2021

Also if you are interested there is a v2 branch with new changes if you are willing to try it.

@RegisSaffi
Copy link
Author

RegisSaffi commented May 29, 2021

Hey, I wasn't willing to try new v2 just yet because I was not doing any new development, just upgrading the app to null safety, that's all.

This is the error I am getting whenever messages list is not empty:

`======== Exception caught by widgets library =======================================================
The following StateError was thrown building ParsedText(dirty):

Bad state: No element

The relevant error-causing widget was:
DashChat file:///Users/regissaffi/FlutterProjects/gray/lib/views/pages/chat.dart:88:16
When the exception was thrown, this was the stack:
#0 Iterable.firstWhere (dart:core/iterable.dart:516:5)
#1 ParsedText.build. (package:flutter_parsed_text/src/parsed_text.dart:129:34)
#2 _StringBase.splitMapJoin (dart:core-patch/string_patch.dart:824:27)
#3 ParsedText.build (package:flutter_parsed_text/src/parsed_text.dart:118:15)
#4 StatelessElement.build (package:flutter/src/widgets/framework.dart:4569:28)
...
====================================================================================================`

Any help to resolve this, and also, how can I try v2 in case this can't be solved just yet?

Thanks!

@fayeed
Copy link
Owner

fayeed commented May 29, 2021

Hey, I just tested this on v1.1.16 and can't reproduce this.

@Dararii
Copy link

Dararii commented May 31, 2021

Hey, I wasn't willing to try new v2 just yet because I was not doing any new development, just upgrading the app to null safety, that's all.

This is the error I am getting whenever messages list is not empty:

`======== Exception caught by widgets library =======================================================
The following StateError was thrown building ParsedText(dirty):

Bad state: No element

The relevant error-causing widget was:
DashChat file:///Users/regissaffi/FlutterProjects/gray/lib/views/pages/chat.dart:88:16
When the exception was thrown, this was the stack:
#0 Iterable.firstWhere (dart:core/iterable.dart:516:5)
#1 ParsedText.build. (package:flutter_parsed_text/src/parsed_text.dart:129:34)
#2 _StringBase.splitMapJoin (dart:core-patch/string_patch.dart:824:27)
#3 ParsedText.build (package:flutter_parsed_text/src/parsed_text.dart:118:15)
#4 StatelessElement.build (package:flutter/src/widgets/framework.dart:4569:28)
...
====================================================================================================`

Any help to resolve this, and also, how can I try v2 in case this can't be solved just yet?

Thanks!

I also encountered this problem after upgrading to 1.1.16. Plan to downgrade to 1.1.15 again after the issue has been resolved.

@SebastienBtr SebastienBtr added the wontfix This will not be worked on label Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants