Skip to content

Commit

Permalink
[image_picker] use LocalizedString to fix lint error. (flutter#3349)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Yang committed Dec 18, 2020
1 parent 41b4486 commit 73eeb30
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions packages/image_picker/image_picker/CHANGELOG.md
@@ -1,3 +1,7 @@
## 0.6.7+17

* iOS: fix `User-facing text should use localized string macro` warning.

## 0.6.7+16

* Update Flutter SDK constraint.
Expand Down
Expand Up @@ -146,10 +146,10 @@ - (void)showCamera {
animated:YES
completion:nil];
} else {
[[[UIAlertView alloc] initWithTitle:@"Error"
message:@"Camera not available."
[[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Error", nil)
message:NSLocalizedString(@"Camera not available.", nil)
delegate:nil
cancelButtonTitle:@"OK"
cancelButtonTitle:NSLocalizedString(@"OK", nil)
otherButtonTitles:nil] show];
self.result(nil);
self.result = nil;
Expand Down
2 changes: 1 addition & 1 deletion packages/image_picker/image_picker/pubspec.yaml
Expand Up @@ -2,7 +2,7 @@ name: image_picker
description: Flutter plugin for selecting images from the Android and iOS image
library, and taking new pictures with the camera.
homepage: https://github.com/flutter/plugins/tree/master/packages/image_picker/image_picker
version: 0.6.7+16
version: 0.6.7+17

flutter:
plugin:
Expand Down

0 comments on commit 73eeb30

Please sign in to comment.