flutter_highcontrast 0.0.3 flutter_highcontrast: ^0.0.3 copied to clipboard
Flutter 获取设备是否开启高对比度模式
flutter_highcontrast #
判断当前设备(Android、ios),是否开启无障碍功能内的高对比度模式。
1、初始化
FlutterHighcontrast();
2、获取是否开启高对比度模式(返回一个bool类型)
FlutterHighcontrast().isHighContrastText(context)
Getting Started #
This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.