Committed by
GitHub
PDF Generation in release build issue fix (#1176)
* Update ttf_parser.dart UnmodifiableByteDataView updated to ByteData * pubspec change for pdf pluging source * incorrect name changed for pdf * git SSH updated to URL * branch updated to master * unmodifiable byte view removed * byte initialisation * update of data type * ttf parser update * bytes update * ttf_pareser UnmodifiableByteDataView updated to byteData for deployment issue fix Co-authored-by: gopisekaran <gopid@piraiinfo.com>
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -115,7 +115,7 @@ class TtfBitmapInfo { | @@ -115,7 +115,7 @@ class TtfBitmapInfo { | ||
115 | } | 115 | } |
116 | 116 | ||
117 | class TtfParser { | 117 | class TtfParser { |
118 | - TtfParser(ByteData bytes) : bytes = UnmodifiableByteDataView(bytes) { | 118 | + TtfParser(this.bytes) { |
119 | final numTables = bytes.getUint16(4); | 119 | final numTables = bytes.getUint16(4); |
120 | 120 | ||
121 | for (var i = 0; i < numTables; i++) { | 121 | for (var i = 0; i < numTables; i++) { |
@@ -162,7 +162,7 @@ class TtfParser { | @@ -162,7 +162,7 @@ class TtfParser { | ||
162 | static const String cblc_table = 'CBLC'; | 162 | static const String cblc_table = 'CBLC'; |
163 | static const String cbdt_table = 'CBDT'; | 163 | static const String cbdt_table = 'CBDT'; |
164 | 164 | ||
165 | - final UnmodifiableByteDataView bytes; | 165 | + final ByteData bytes; |
166 | final tableOffsets = <String, int>{}; | 166 | final tableOffsets = <String, int>{}; |
167 | final tableSize = <String, int>{}; | 167 | final tableSize = <String, int>{}; |
168 | 168 |
-
Please register or login to post a comment