child parameter has been deprecated
ImagePicker.pickImage() need parameter source: null
This commit is contained in:
@@ -65,5 +65,5 @@ getLocaleTitle(String code) {
|
|||||||
|
|
||||||
// Добавил вызов, что-бы AOT компилер не выкинул либу.
|
// Добавил вызов, что-бы AOT компилер не выкинул либу.
|
||||||
getImage() async {
|
getImage() async {
|
||||||
return await ImagePicker.pickImage();
|
return await ImagePicker.pickImage(source: null);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -298,7 +298,7 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
|
|||||||
print(currency.toString());
|
print(currency.toString());
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
child: new AlertDialog(
|
builder: (_) => new AlertDialog(
|
||||||
title: new Text(StringsLocalization.confirmation()),
|
title: new Text(StringsLocalization.confirmation()),
|
||||||
content:
|
content:
|
||||||
new Text(
|
new Text(
|
||||||
@@ -325,7 +325,7 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
|
|||||||
apiErrorAlert(String errorText) {
|
apiErrorAlert(String errorText) {
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
child: new AlertDialog(
|
builder: (_) => new AlertDialog(
|
||||||
content: new Text(errorText),
|
content: new Text(errorText),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
new FlatButton(
|
new FlatButton(
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ class SettingsState extends BaseState<SettingsScreen> {
|
|||||||
showYesNoDialog(BuildContext context, String title, String content) {
|
showYesNoDialog(BuildContext context, String title, String content) {
|
||||||
showDialog<bool>(
|
showDialog<bool>(
|
||||||
context: context,
|
context: context,
|
||||||
child: new AlertDialog(
|
builder: (_) => new AlertDialog(
|
||||||
title: new Text(title),
|
title: new Text(title),
|
||||||
content: new Text(content),
|
content: new Text(content),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ packages:
|
|||||||
name: image_picker
|
name: image_picker
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.4.2"
|
version: "0.4.10"
|
||||||
meta:
|
meta:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -115,7 +115,7 @@ packages:
|
|||||||
name: synchronized
|
name: synchronized
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.5.3"
|
version: "1.5.3+2"
|
||||||
typed_data:
|
typed_data:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|||||||
Reference in New Issue
Block a user