WidgetWrapper class
ImageProvider that draws a Flutter Widget on a PDF document
- Implementers
Properties
- bytes → Uint8List
-
The image data
final
- dpi → double?
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int?
-
Image height
no setterinherited
- orientation → PdfImageOrientation
-
The internal orientation of the image
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → int?
-
Image width
no setterinherited
Methods
-
buildImage(
Context context, {int? width, int? height}) → PdfImage -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
Context context, PdfPoint size, {double? dpi}) → PdfImage -
Resolves this image provider using the given context, returning a PdfImage
The image is automatically added to the document
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromKey(
{required GlobalKey< State< key, int? width, int? height, double pixelRatio = 1.0, PdfImageOrientation? orientation, double? dpi}) → Future<StatefulWidget> >WidgetWrapper> - Wrap a Flutter Widget identified by a GlobalKey to an ImageProvider.
-
fromWidget(
{required BuildContext context, required Widget widget, required BoxConstraints constraints, double pixelRatio = 1.0, PdfImageOrientation? orientation, double? dpi}) → Future< WidgetWrapper> - Wrap a Flutter Widget to an ImageProvider.