Update todo

pull/1428/head
Ahmed Hnewa 2 years ago
parent 91d9906584
commit b29319edfe
No known key found for this signature in database
GPG Key ID: C488CC70BBCEF0D1
  1. 15
      flutter_quill_extensions/lib/embeds/builders.dart
  2. 14
      lib/src/utils/string.dart

@ -232,16 +232,11 @@ class ImageEmbedBuilder extends EmbedBuilder {
return sb.toString();
}
// TODO: Please consider add bool
// property in
// replaceStyleString that will use either
// mobileWidth or width based on that
// property
// but that require changes to the
// flutter_quill
// and it should be
// published and then we can
// change it from flutter_quill_extensions
// TODO: When update flutter_quill
// we should update flutter_quill_extensions
// to use the latest version and use
// base.replaceStyleStringWithSize()
// instead of replaceStyleString
final attr = base.isMobile()
? base.replaceStyleString(

@ -19,6 +19,20 @@ Map<String, String> parseKeyValuePairs(String s, Set<String> targetKeys) {
return result;
}
@Deprecated('Use replaceStyleStringWithSize instead')
String replaceStyleString(
String s,
double width,
double height,
) {
return replaceStyleStringWithSize(
s,
width: width,
height: height,
isMobile: true,
);
}
String replaceStyleStringWithSize(
String s, {
required double width,

Loading…
Cancel
Save