package_info_tizen 2.0.1
package_info_tizen: ^2.0.1 copied to clipboard
Flutter plugin for querying information about the application package on Tizen platofrm.
package_info_tizen #
Deprecation Notice #
The package_info
plugin has been replaced by the Flutter Community Plus Plugins version, package_info_plus
. Consider migrating to package_info_plus
and its Tizen implementation package_info_plus_tizen
.
The Tizen implementation of package_info
.
Usage #
This package is not an endorsed implementation of package_info
. Therefore, you have to include package_info_tizen
alongside package_info
as dependencies in your pubspec.yaml
file.
dependencies:
package_info: ^2.0.0
package_info_tizen: ^2.0.1
copied to clipboard
Then you can import package_info
in your Dart code:
import 'package:package_info/package_info.dart';
PackageInfo packageInfo = await PackageInfo.fromPlatform();
String appName = packageInfo.appName;
String packageName = packageInfo.packageName;
String version = packageInfo.version;
String buildNumber = packageInfo.buildNumber;
copied to clipboard
Or in async mode:
PackageInfo.fromPlatform().then((PackageInfo packageInfo) {
String appName = packageInfo.appName;
String packageName = packageInfo.packageName;
String version = packageInfo.version;
String buildNumber = packageInfo.buildNumber;
});
copied to clipboard
For detailed usage, see https://pub.dev/packages/package_info#usage.
Supported devices #
- Galaxy Watch series (running Tizen 4.0 or later)