flutter_highcontrast 0.0.3 copy "flutter_highcontrast: ^0.0.3" to clipboard
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.

0
likes
105
pub points
0%
popularity

Publisher

unverified uploader

Flutter 获取设备是否开启高对比度模式

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_highcontrast