device_is_pad 0.0.2 copy "device_is_pad: ^0.0.2" to clipboard
device_is_pad: ^0.0.2 copied to clipboard

plugin detect device is pad or phone.

device_type #

plugin detect device is pad or phone.

Getting Started #

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use #

Future<void> main() async {
  await runZonedGuarded(
    () async {
      WidgetsFlutterBinding.ensureInitialized();

      final s = await DeviceIsPad.instance.deviceType();
      
      ...

      runApp(const MyApp());
    },
    (e, s) {
      log(e.toString(), stackTrace: s);
      // FirebaseAppCrashlytics.logException(
      //   message: FirebaseAppCrashlytics.homeCrash,
      //   e: e,
      //   stack: s,
      // );
    },
  );
}
0
likes
150
points
85
downloads

Publisher

unverified uploader

Weekly Downloads

plugin detect device is pad or phone.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on device_is_pad

Packages that implement device_is_pad