Skip to content

Commit

Permalink
Merge branch 'dev' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
PLGuerraDesigns committed Oct 13, 2023
2 parents 661040f + 264e2c0 commit cb1e374
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
48 changes: 26 additions & 22 deletions lib/screens/split_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,19 @@ class SplitScreenState extends State<SplitScreen>
});
case 2:
showDialog(
context: context,
builder: (BuildContext context) => DownloadDialog(
onDownloadPdf: () async {
Navigator.pop(context);
await FileHandler().savePDF(pdfGenerator);
},
onDownloadJson: () async {
Navigator.pop(context);
await FileHandler().savePDF(pdfGenerator);
},
));
context: context,
builder: (BuildContext context) => DownloadDialog(
onDownloadPdf: () async {
await FileHandler().savePDF(pdfGenerator);
},
onDownloadJson: () {
FileHandler().saveJSONData(
pdfGenerator: pdfGenerator,
projectVersionInfoHandler: projectInfoHandler,
);
},
),
);
case 3:
Printing.layoutPdf(
onLayout: (PdfPageFormat format) =>
Expand Down Expand Up @@ -463,17 +465,19 @@ class SplitScreenState extends State<SplitScreen>
tooltip: Strings.downloadPdfAndJson,
onPressed: () {
showDialog(
context: context,
builder: (BuildContext context) => DownloadDialog(
onDownloadPdf: () async {
Navigator.pop(context);
await FileHandler().savePDF(pdfGenerator);
},
onDownloadJson: () async {
Navigator.pop(context);
await FileHandler().savePDF(pdfGenerator);
},
));
context: context,
builder: (BuildContext context) => DownloadDialog(
onDownloadPdf: () async {
await FileHandler().savePDF(pdfGenerator);
},
onDownloadJson: () {
FileHandler().saveJSONData(
pdfGenerator: pdfGenerator,
projectVersionInfoHandler: projectInfoHandler,
);
},
),
);
},
),
],
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: A resume builder app made with flutter.

publish_to: "none"

version: 0.4.3+10
version: 0.4.4+11

environment:
sdk: ">=3.0.6 <4.0.0"
Expand Down

0 comments on commit cb1e374

Please sign in to comment.