Showing
1 changed file
with
0 additions
and
51 deletions
@@ -228,54 +228,3 @@ class WidgetWrapper extends pw.ImageProvider { | @@ -228,54 +228,3 @@ class WidgetWrapper extends pw.ImageProvider { | ||
228 | ); | 228 | ); |
229 | } | 229 | } |
230 | } | 230 | } |
231 | - | ||
232 | -/// ImageProvider that draws a Flutter Widget on a PDF document | ||
233 | -@Deprecated('Use WidgetWrapper instead') | ||
234 | -class WidgetWraper extends WidgetWrapper { | ||
235 | - WidgetWraper._( | ||
236 | - Uint8List bytes, | ||
237 | - int width, | ||
238 | - int height, | ||
239 | - PdfImageOrientation orientation, | ||
240 | - double? dpi, | ||
241 | - ) : super._(bytes, width, height, orientation, dpi); | ||
242 | - | ||
243 | - /// Wrap a Flutter Widget identified by a GlobalKey to an ImageProvider. | ||
244 | - @Deprecated('Use WidgetWrapper.fromKey instead') | ||
245 | - static Future<WidgetWrapper> fromKey({ | ||
246 | - required GlobalKey key, | ||
247 | - int? width, | ||
248 | - int? height, | ||
249 | - double pixelRatio = 1.0, | ||
250 | - PdfImageOrientation? orientation, | ||
251 | - double? dpi, | ||
252 | - }) { | ||
253 | - return WidgetWrapper.fromKey( | ||
254 | - key: key, | ||
255 | - width: width, | ||
256 | - pixelRatio: pixelRatio, | ||
257 | - orientation: orientation, | ||
258 | - dpi: dpi, | ||
259 | - ); | ||
260 | - } | ||
261 | - | ||
262 | - /// Wrap a Flutter Widget to an ImageProvider. | ||
263 | - @Deprecated('Use WidgetWrapper.fromWidget instead') | ||
264 | - static Future<WidgetWrapper> fromWidget({ | ||
265 | - required BuildContext context, | ||
266 | - required Widget widget, | ||
267 | - required BoxConstraints constraints, | ||
268 | - double pixelRatio = 1.0, | ||
269 | - PdfImageOrientation? orientation, | ||
270 | - double? dpi, | ||
271 | - }) { | ||
272 | - return WidgetWrapper.fromWidget( | ||
273 | - context: context, | ||
274 | - widget: widget, | ||
275 | - constraints: constraints, | ||
276 | - pixelRatio: pixelRatio, | ||
277 | - orientation: orientation, | ||
278 | - dpi: dpi, | ||
279 | - ); | ||
280 | - } | ||
281 | -} |
-
Please register or login to post a comment