yxw_comm_base_plus 0.0.1+1
yxw_comm_base_plus: ^0.0.1+1 copied to clipboard
一个内部使用的基础库
yxw_comm_base_plus #
A Flutter plugin that provides basic functionality for Android and iOS platforms.
Features #
- Get platform version
- Get device information
- Show toast messages
⚠️ The plugin previously depended on
flutter_android_oaid_pluginfor obtaining OAID on Android. That dependency caused unresolved Gradle artifacts and has been removed. If you require OAID support, add your own package in the application using this plugin and implement the lookup logic there.
Installation #
Add the following dependency to your pubspec.yaml file:
dependencies:
yxw_comm_base_plus:
path: /path/to/yxw_comm_base_plus
Usage #
import 'package:yxw_comm_base_plus/yxw_comm_base_plus.dart';
// Get platform version
String? platformVersion = await YxwCommBasePlus.platformVersion;
// Get device information
String? deviceInfo = await YxwCommBasePlus.deviceInfo;
// Show toast message
await YxwCommBasePlus.showToast('Hello from Flutter Plugin!');
Platform Support #
- Android: ✅
- iOS: ✅