than_pkg 0.0.5 copy "than_pkg: ^0.0.5" to clipboard
than_pkg: ^0.0.5 copied to clipboard

PlatformAndroid

android native plugin.it is my personal lib and you can use.this is my first lib.so is will bugs.

0.0.5 #

linux #

needed lib sudo apt install net-tools // wifi sudo apt install poppler-utils //pdf thumbnail sudo apt install ffmpeg //video thumbnail

android && linux #

  await ThanPkg.platform.getWifiAddressList();
  await ThanPkg.platform.genPdfCover(outDirPath: '', pdfPathList: []);
  await ThanPkg.platform.genVideoCover(outDirPath: '', videoPathList: []);

android only #

အသုံးပြုနိုင်တဲ့ Methods များ

await ThanPkg.platform.checkScreenOrientation();
await ThanPkg.platform.requestScreenOrientation(type: ScreenOrientationTypes.Portrait);

//android device info <Map> type
await ThanPkg.platform.getAndroidDeviceInfo()

//android any version can handle
await ThanPkg.platform.isStoragePermissionGranted();
await ThanPkg.platform.requestStoragePermission();

await ThanPkg.platform.openUrl(url: '');
await ThanPkg.platform.getPlatformVersion();
await ThanPkg.platform.getDeviceId();
await ThanPkg.platform.toggleKeepScreen(isKeep: false);
await ThanPkg.platform.toggleFullScreen(isFullScreen: !isFullScreen);
await ThanPkg.platform.checkAndRequestPackageInstallPermission();
await ThanPkg.platform.getLocalIpAddress();
await ThanPkg.platform.getWifiAddress();

android AndroidManifest #

//need permission
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/>
1
likes
140
points
1.38k
downloads

Publisher

unverified uploader

Weekly Downloads

android native plugin.it is my personal lib and you can use.this is my first lib.so is will bugs.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on than_pkg

Packages that implement than_pkg