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

The argument type 'Delta' can't be assigned to the parameter type 'Delta*'. #15

Open
Seeeev opened this issue Sep 18, 2022 · 2 comments

Comments

@Seeeev
Copy link

Seeeev commented Sep 18, 2022

notustohtml: ^0.0.8

var notus = NotusDocument.fromJson(json);
final converter = NotusHtmlCodec();
String html = converter.encode(notus.toDelta());
@Andoresu250
Copy link

This happens maybe because you are using zefyrka instead of zefyr The Delta object/class is not the same you can try this work around but only run your app with no null safety

import 'package:notus/notus.dart' as notuslib;
import 'package:notustohtml/notustohtml.dart';
import 'package:quill_delta/quill_delta.dart';

var notus = notuslib.NotusDocument.fromJson(json);
final converter = NotusHtmlCodec();
String html = converter.encode(notus.toDelta());

@JacobWrenn
Copy link
Owner

Also note that notustohtml: 1.0.0-rc.2 does support null safety

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

No branches or pull requests

3 participants