Skip to content

error importing library #481

@cristiangiroon

Description

@cristiangiroon

I was using the syncfusion_flutter_pdf 20.4.49 library and with the latest updates error comes out when importing the library

Expected behavior (required)

I can´t import and use the library syncfusion_flutter_pdf 20.4.49

Current behavior (required)

this error ----- > Unknown error compiling custom code. A common cause is a custom widget or action whose name in the code does not match the name provided in the editor.<-----------------------

THE CODE ----->

To Reproduce (required)

import 'package:intl/intl.dart' as intl;
import 'package:syncfusion_flutter_pdf/pdf.dart';
import 'dart:io';
import 'package:path_provider/path_provider.dart';
Future shareDocumento(
) async {
final PdfDocument document = PdfDocument();
document.pages.add().graphics.drawString(
'Hello World!', PdfStandardFont(PdfFontFamily.helvetica, 12),
brush: PdfSolidBrush(PdfColor(0, 0, 0)),
bounds: const Rect.fromLTWH(0, 0, 150, 20));
final file = File('${directory.path}/my_file.pdf');
await file.writeAsBytes(await document.save());
document.dispose();
}

Bug Report Code (required, generate by right clicking inside Widget Tree and clickig "Get Bug Report Code")

Context (required)

i can´t use the library syncfusion_flutter_pdf 20.4.49 in my project

Screenshots / recordings

Your environment

  • Version of FlutterFlow used:
  • Platform (e.g. Web, MacOS Desktop):
  • Browser name and version:
  • Operating system and version (desktop or mobile):

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions