Skip to content

li1679829296/flutter_highcontrast

Repository files navigation

flutter_highcontrast

判断当前设备(Android、ios),是否开启无障碍功能内的高对比度模式。

1、导入

flutter_highcontrast: ^0.0.3

2、初始化

FlutterHighcontrast();

3、获取是否开启高对比度模式(返回一个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.