zeking_flash_lamp 0.0.1 copy "zeking_flash_lamp: ^0.0.1" to clipboard
zeking_flash_lamp: ^0.0.1 copied to clipboard

Flutter 闪光灯

zeking_flash_lamp #

Flutter 闪光灯操作

此插件是 在 lamp 的基础上修改的,因为 lamp 的android端无法正常工作 附上lamp地址:https://pub.dev/packages/lamp

example的代码也是直接 拷贝 lamp 过来。

// Import package import 'package:zeking_flash_lamp/zeking_flash_lamp.dart';

// Turn the lamp on: ZekingFlashLamp.turnOn();

// Turn the lamp off: ZekingFlashLamp.turnOff();

// Turn the lamp with a specific intensity (only affects iOS as of now): ZekingFlashLamp.turnOn(intensity: 0.4);

// Check if the device has a lamp: bool hasLamp = await ZekingFlashLamp.hasLamp;

0
likes
25
pub points
0%
popularity

Publisher

unverified uploader

Flutter 闪光灯

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on zeking_flash_lamp