my_device 0.0.3 my_device: ^0.0.3 copied to clipboard
Agile and easy access to device information and internet connection alerts
Features #
Agile & easy handler for device information 🧙🏿
Getting started #
Once context is initialized run
Device(context);
Usage #
Quick access to screen height and width
var screenHeigth = Device.i.screenHeigth;
var screenWidth = Device.i.screenWidth;
Easy background asset path configuration
var backgroundAssetPath = Device.i.backgroundAssetPath;
Agile access to platform information and disposition
var webDevice = Device.i.isWeb;
var androidDevice = Device.i.isAndroid;
var iosDevice = Device.i.isIOS;
var iosTablet = Device.i.isTablet;
Access to device default padding
var paddingDevice = Device.i.viewPadding;
Fast access to all device information
var device = Device.i.mediaQuery;
Fast access to all Device Information Plugin
var deviceInfo = Device.i.deviceInfo;
Additional information #
This package assumes corresponding permissions depending on platform