mirror of
https://github.com/foss42/apidash.git
synced 2025-06-27 19:07:40 +08:00
edited the printing part due to error
This commit is contained in:
@ -3,7 +3,7 @@ import 'package:apidash_core/apidash_core.dart';
|
|||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:jinja/jinja.dart' as jj;
|
import 'package:jinja/jinja.dart' as jj;
|
||||||
import 'package:printing/printing.dart';
|
//import 'package:printing/printing.dart';
|
||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
import 'package:vector_graphics_compiler/vector_graphics_compiler.dart';
|
import 'package:vector_graphics_compiler/vector_graphics_compiler.dart';
|
||||||
import 'error_message.dart';
|
import 'error_message.dart';
|
||||||
@ -79,21 +79,21 @@ class _PreviewerState extends State<Previewer> {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (widget.type == kTypeApplication && widget.subtype == kSubTypePdf) {
|
// if (widget.type == kTypeApplication && widget.subtype == kSubTypePdf) {
|
||||||
return PdfPreview(
|
// return PdfPreview(
|
||||||
build: (_) => widget.bytes,
|
// build: (_) => widget.bytes,
|
||||||
useActions: false,
|
// useActions: false,
|
||||||
onError: (context, error) {
|
// onError: (context, error) {
|
||||||
return ErrorMessage(
|
// return ErrorMessage(
|
||||||
message: errorTemplate.render({
|
// message: errorTemplate.render({
|
||||||
"showRaw": false,
|
// "showRaw": false,
|
||||||
"showContentType": false,
|
// "showContentType": false,
|
||||||
"type": kSubTypePdf,
|
// "type": kSubTypePdf,
|
||||||
}),
|
// }),
|
||||||
);
|
// );
|
||||||
},
|
// },
|
||||||
);
|
// );
|
||||||
}
|
// }
|
||||||
if (widget.type == kTypeAudio) {
|
if (widget.type == kTypeAudio) {
|
||||||
return Uint8AudioPlayer(
|
return Uint8AudioPlayer(
|
||||||
bytes: widget.bytes,
|
bytes: widget.bytes,
|
||||||
|
410
pubspec.lock
410
pubspec.lock
File diff suppressed because it is too large
Load Diff
@ -54,7 +54,7 @@ dependencies:
|
|||||||
package_info_plus: ^8.0.2
|
package_info_plus: ^8.0.2
|
||||||
path: ^1.8.3
|
path: ^1.8.3
|
||||||
path_provider: ^2.1.2
|
path_provider: ^2.1.2
|
||||||
printing: ^5.13.4
|
# printing: ^5.13.4
|
||||||
provider: ^6.1.2
|
provider: ^6.1.2
|
||||||
riverpod: ^2.5.1
|
riverpod: ^2.5.1
|
||||||
scrollable_positioned_list: ^0.3.8
|
scrollable_positioned_list: ^0.3.8
|
||||||
|
Reference in New Issue
Block a user