|
|
@ -15,10 +15,12 @@ Future<File> camFile({double maxHeight = 3000, double maxWidth = 3000}) async {
|
|
|
|
return File(pickedFile.path);
|
|
|
|
return File(pickedFile.path);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Future<File> camView(BuildContext context,
|
|
|
|
Future<File> camView(
|
|
|
|
{double maxHeight = 3000,
|
|
|
|
BuildContext context, {
|
|
|
|
double maxWidth = 3000,
|
|
|
|
double maxHeight = 3000,
|
|
|
|
@required String title}) async {
|
|
|
|
double maxWidth = 3000,
|
|
|
|
|
|
|
|
@required String title,
|
|
|
|
|
|
|
|
}) async {
|
|
|
|
File file = await camFile(maxHeight: maxHeight, maxWidth: maxWidth);
|
|
|
|
File file = await camFile(maxHeight: maxHeight, maxWidth: maxWidth);
|
|
|
|
if (file == null) return null;
|
|
|
|
if (file == null) return null;
|
|
|
|
return await Navigator.push(context, PageRouteBuilder(
|
|
|
|
return await Navigator.push(context, PageRouteBuilder(
|
|
|
|