Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2024-02-21 08:37:03 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3a58406888b84ad4fbf54ee2cc97a3bd848f8c2d
3a584068
1 parent
2a0cd5d9
Remove deprecated class
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
51 deletions
widget_wrapper/lib/src/widget_wrapper.dart
widget_wrapper/lib/src/widget_wrapper.dart
View file @
3a58406
...
...
@@ -228,54 +228,3 @@ class WidgetWrapper extends pw.ImageProvider {
);
}
}
/// ImageProvider that draws a Flutter Widget on a PDF document
@Deprecated
(
'Use WidgetWrapper instead'
)
class
WidgetWraper
extends
WidgetWrapper
{
WidgetWraper
.
_
(
Uint8List
bytes
,
int
width
,
int
height
,
PdfImageOrientation
orientation
,
double
?
dpi
,
)
:
super
.
_
(
bytes
,
width
,
height
,
orientation
,
dpi
);
/// Wrap a Flutter Widget identified by a GlobalKey to an ImageProvider.
@Deprecated
(
'Use WidgetWrapper.fromKey instead'
)
static
Future
<
WidgetWrapper
>
fromKey
({
required
GlobalKey
key
,
int
?
width
,
int
?
height
,
double
pixelRatio
=
1.0
,
PdfImageOrientation
?
orientation
,
double
?
dpi
,
})
{
return
WidgetWrapper
.
fromKey
(
key:
key
,
width:
width
,
pixelRatio:
pixelRatio
,
orientation:
orientation
,
dpi:
dpi
,
);
}
/// Wrap a Flutter Widget to an ImageProvider.
@Deprecated
(
'Use WidgetWrapper.fromWidget instead'
)
static
Future
<
WidgetWrapper
>
fromWidget
({
required
BuildContext
context
,
required
Widget
widget
,
required
BoxConstraints
constraints
,
double
pixelRatio
=
1.0
,
PdfImageOrientation
?
orientation
,
double
?
dpi
,
})
{
return
WidgetWrapper
.
fromWidget
(
context:
context
,
widget:
widget
,
constraints:
constraints
,
pixelRatio:
pixelRatio
,
orientation:
orientation
,
dpi:
dpi
,
);
}
}
...
...
Please
register
or
login
to post a comment