YFree
library
Functions
-
kkzgGQJKpLIBSrpR(BuildContext? context)
→ MediaQueryData
-
-
wmxwNZSqnMbmvtpU()
→ EPIsjPVkeclgccta?
-
-
xzPRAElXcutKQYqq(dynamic USEAlvbSlycmbCFI(), {int? JnVTRfTxTddZcRHj})
→ void
-
-
yAesDecode(String content, String password)
→ String
-
aes解密
-
yAesEncode(String content, String password)
→ String
-
aes加密
-
yBase64Decode(String content)
→ String
-
base64解码
-
yBase64Encode(String content)
→ String
-
base64转码
-
yCheckUpdate({required int newVersion, required String updateContent, required String? apkDownloadPath, required String? androidAppId, required String? iOSAppId, String updateButtonText = "立即升级", String ignoreButtonText = "忽略此版本", Image? topImage, double width = 250, bool enableIgnore = false, dynamic onNewest()?, dynamic onIgnore()?})
→ void
-
检测更新
-
yCloseInputMethod({BuildContext? context})
→ void
-
-
yConfigIP(String ip)
→ void
-
配置原生框架post地址
-
yConfigUpdateIP(String updateIp)
→ void
-
配置原生框架检测升级地址
-
yCopyClipBoard(String content)
→ void
-
复制到剪贴板
-
yDelete(String key, {bool secure = false})
→ Future<void>
-
本地删值
-
yDismissDialog(BuildContext? dialogContext)
→ void
-
-
yDismissDialog_unDismissible()
→ void
-
-
yDismissProgress()
→ void
-
关闭进度条,传入page可拦截安卓返回键
-
yDoCrash(dynamic error, {Object? errorObj})
→ void
-
-
yFinishApplication()
→ void
-
退出App
-
yGetAppName()
→ String
-
获取App名称
-
yGetDeviceID()
→ Future<String>
-
设备唯一码
-
yIsNetAble()
→ Future<bool>
-
检查网络是否可用
-
yIsNotEmpty(String? content)
→ bool
-
检查非空
-
yIsNullOrEmpty(String? content)
→ bool
-
检查为空
-
yLog(String message)
→ void
-
打印log
-
yMD5(String content)
→ String
-
MD5加密
-
yNavBarHeight()
→ double
-
获取导航条高度
-
yRead(String key, {bool secure = false})
→ Future<String?>
-
本地取值
-
yRequestStorage({bool showFail = true})
→ Future<bool>
-
请求存储权限
-
yRun(dynamic action(), {int delay = 0})
→ void
-
主线程运行
-
yRunApp({required Future<YPage> onLaunchPage(), MaterialColor? primarySwatch, required dynamic onYConfig(), dynamic builder(BuildContext context, Widget? child)?, ThemeData theme(ThemeData yThemeData)?, dynamic onYRan()?})
→ void
-
YFree启动函数
-
yRunCompleter<T>(dynamic action(Completer<T> completer))
→ Future<T>
-
异步转同步
-
yRunLoop(dynamic action(Timer? timer), int loop, {dynamic runNow = false})
→ Timer
-
主线程运行(循环)
-
yRunOnce<T>(String key, T fn())
→ T
-
-
yRunOnceContainsKey(String key)
→ bool
-
-
yRunOnceDelete(String key)
→ void
-
-
ySafeAreaBottomHeight({BuildContext? context})
→ double
-
获取底部安全区高度
-
ySave(String key, String value, {bool secure = false})
→ Future<void>
-
本地存值
-
yScreenSize({BuildContext? context})
→ Size
-
获取屏幕尺寸
-
yShowActionSheet(String message, List<String> actions, dynamic onCallBack(int index, String action), {dynamic onCancel()?, BuildContext? context})
→ void
-
弹出actionsheet
-
yShowBuilder(String message, dynamic confirmCallBack(), dynamic cancelCallBack()?, bool cancelAble, {String posTitle = "确定", String negTitle = "取消", BuildContext? context})
→ void
-
弹出对话框
-
yShowDialog({required dynamic alertBuilder(BuildContext pageContext, BuildContext? dialogContext), bool dismissible = true, BuildContext? context})
→ void
-
-
yShowProgress()
→ void
-
打开进度条,传入page可拦截安卓返回键
-
yShowSelectBuilder(String message, bool cancelAble, List<String> actions, dynamic onCallBack(int index, String action), {dynamic onCancelBack()?, BuildContext? context})
→ void
-
弹出单选框
-
yShowStatefulDialog({required dynamic alertBuilder(BuildContext pageContext, BuildContext? dialogContext, BuildContext statefulContext, StateSetter setDialogState), bool dismissible = true, BuildContext? context})
→ void
-
-
yStatubarHeight({BuildContext? context})
→ double
-
获取状态栏高度
-
yToast(String message)
→ void
-
底部文字提示
-
yToJson(Object obj)
→ String
-
字典转json