Enable Android TV 'OK' Button (#281)

This commit is contained in:
Imran Remtulla
2023-08-18 22:12:16 -04:00
parent 5269aad90d
commit 734a1aeb01
3 changed files with 6 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ import 'package:easy_localization/src/easy_localization_controller.dart';
// ignore: implementation_imports
import 'package:easy_localization/src/localization.dart';
const String currentVersion = '0.13.25';
const String currentVersion = '0.13.26';
const String currentReleaseTag =
'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES
@@ -299,7 +299,9 @@ class _ObtainiumState extends State<Obtainium> {
? lightColorScheme
: darkColorScheme,
fontFamily: 'Metropolis'),
home: const HomePage());
home: Shortcuts(shortcuts: <LogicalKeySet, Intent>{
LogicalKeySet(LogicalKeyboardKey.select): const ActivateIntent(),
}, child: const HomePage()));
});
}
}

View File

@@ -344,7 +344,7 @@ class AppsProvider with ChangeNotifier {
// If we did not install the app (or it isn't installed), silent install is not possible
return false;
}
var targetSDK;
int? targetSDK;
try {
targetSDK = (await pm.getPackageInfo(packageName: app.id))
?.applicationInfo

View File

@@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 0.13.25+189 # When changing this, update the tag in main() accordingly
version: 0.13.26+190 # When changing this, update the tag in main() accordingly
environment:
sdk: '>=2.18.2 <3.0.0'