platform_data 0.0.3 copy "platform_data: ^0.0.3" to clipboard
platform_data: ^0.0.3 copied to clipboard

A package that you can find out the platform type of the user

example/main.dart

import 'package:flutter/material.dart';
import 'package:platform_data/platform_data.dart';

void main() {
  PlatformData.init();
  print('platform type: ' + PlatformData.platformType.toString());

  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({ Key? key }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      
    );
  }
}
1
likes
120
points
24
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A package that you can find out the platform type of the user

License

unknown (license)

Dependencies

flutter

More

Packages that depend on platform_data