Add image_picker library, refs #10046
Reason: before this commit app crashs in release mode, there are no settings for this app (in ios settings app). After adding image_picker library and getImage() function in lib/common.dart (pre caution against AOT compiller dead code elemenation) after ask permissions for camera usage.
This commit is contained in:
@@ -4,6 +4,7 @@ import 'package:checker/screens/settings.dart';
|
||||
import 'package:checker/screens/splash.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:image_picker/image_picker.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
|
||||
import 'db.dart';
|
||||
@@ -213,3 +214,8 @@ getLocaleTitle(String code) {
|
||||
return 'Español';
|
||||
}
|
||||
}
|
||||
|
||||
// Добавил вызов, что-бы AOT компилер не выкинул либу.
|
||||
getImage() {
|
||||
return await ImagePicker.pickImage();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user