forked from yaso_meth/mih-project
add print preview route
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:patient_manager/mih_components/mih_layout/mih_print_prevew.dart';
|
||||
import 'package:patient_manager/mih_packages/authentication/auth_check.dart';
|
||||
import 'package:patient_manager/mih_packages/patient_profile/add_or_view_patient.dart';
|
||||
import 'package:patient_manager/mih_packages/patient_profile/patient_add.dart';
|
||||
@@ -180,6 +181,16 @@ class RouteGenerator {
|
||||
);
|
||||
}
|
||||
return _errorRoute();
|
||||
case '/file-veiwer/print-preview':
|
||||
if (args is PrintPreviewArguments) {
|
||||
return MaterialPageRoute(
|
||||
settings: settings,
|
||||
builder: (_) => MIHPrintPreview(
|
||||
arguments: args,
|
||||
),
|
||||
);
|
||||
}
|
||||
return _errorRoute();
|
||||
default:
|
||||
return _errorRoute();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user