platform_is_android_tablet 0.0.1
platform_is_android_tablet: ^0.0.1 copied to clipboard
A Flutter plugin for Android that provides a reliable way to detect whether the current device is a tablet, even without UI context.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add platform_is_android_tabletThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
platform_is_android_tablet: ^0.0.1Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:platform_is_android_tablet/platform_is_android_tablet.dart';