iOS zxing scanner, iOS localization
This commit is contained in:
@@ -69,10 +69,12 @@ abstract class BaseState<T extends StatefulWidget> extends State<T> {
|
||||
child: getMenuItem(help_png, StringsLocalization.help())
|
||||
));
|
||||
|
||||
menuItemList.add(new PopupMenuItem(
|
||||
value: 2,
|
||||
child: getMenuItem(exit_png, StringsLocalization.exit())
|
||||
));
|
||||
if (Theme.of(context).platform != TargetPlatform.iOS) {
|
||||
menuItemList.add(new PopupMenuItem(
|
||||
value: 2,
|
||||
child: getMenuItem(exit_png, StringsLocalization.exit())
|
||||
));
|
||||
}
|
||||
|
||||
return <Widget>[
|
||||
new PopupMenuButton<int>(
|
||||
@@ -87,7 +89,7 @@ abstract class BaseState<T extends StatefulWidget> extends State<T> {
|
||||
void onOptionsItemClick(int index) {
|
||||
switch (index) {
|
||||
case 0: {
|
||||
pushRoute(context, new SettingsScreen(helper, app, false));
|
||||
pushRoute(context, new SettingsScreen(helper, app, false));
|
||||
break;
|
||||
}
|
||||
case 1: {
|
||||
|
||||
Reference in New Issue
Block a user