СК
Size: a a a
СК
ОС
ОС
Т
generatePDF() async {
ByteData logoBytes = await rootBundle.load('assets/image.png');
var logo = logoBytes.buffer.asUint8List();
final pdf = await generateDocument(PDF.PdfPageFormat.a4, logo);
File file = MemoryFileSystem().file('example.pdf')
..writeAsBytesSync(pdf.save());
JS.context.callMethod('ToFile', [file.readAsBytesSync()]);
}
}
import 'package:flutter/widgets.dart' as w;
ByteData byteData = await rootBundle.load('assets/image.png');
var k = byteData.buffer.asUint8List();
var temp = await pdfImageFromImageProvider(
pdf: doc.document,
image: w.MemoryImage(k));
r
DO
r
DO
RM
_TypeError
type '_OneByteString' is not a subtype of type 'Map<dynamic, dynamic>'
D
_TypeError
type '_OneByteString' is not a subtype of type 'Map<dynamic, dynamic>'
AO
_TypeError
type '_OneByteString' is not a subtype of type 'Map<dynamic, dynamic>'
RM
_TypeError
type '_OneByteString' is not a subtype of type 'Map<dynamic, dynamic>'
platform_channel.dart in MethodChannel.invokeMethod at line 321
Called from: <asynchronous suspension>
appsflyer_sdk.dart in AppsflyerSdk.initSdk at line 159
Globals.dart in Globals.init at line 128
Called from: <asynchronous suspension>
main.dart in main at line 19
Called from: async_patch.dart in _AsyncAwaitCompleter.start
main.dart in main at line 17
Called from: hooks.dart in _runMainZoned.<fn>.<fn>
AO
t
t
RM
RM
RM
RM
_OneByteString
? Релизный вариант String
, что ли?АЛ
_OneByteString
? Релизный вариант String
, что ли?