0 purchases
debug bricks device info
UI component which display information about the device.
Dependencies #
This package use device_info_plus package as a
device info source.
Getting started #
Add to your pubspec.yaml:
dependencies:
debug_bricks_device_info: <last_version>
copied to clipboard
Usage #
import 'package:debug_bricks_device_info/debug_bricks_device_info.dart';
class DebugScreen extends StatelessWidget {
const DebugScreen({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return DeviceInfoBrick(
title: 'Device Info',
);
}
}
copied to clipboard
When a user clicks on UI displayed device info will be copied into the clipboard.
Customization #
You can customize output by pass custom deviceInfoAdapter instance in DeviceInfoBrick
instantiation.
class CustomDeviceInfoAdapter extends DeviceInfoAdapter {
const CustomDeviceInfoAdapter();
@override
String extract(BaseDeviceInfo deviceInfo) {
//format data here
}
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.