开发日记:震动反馈

narakuyang
2022-05-13 / 0 评论 / 9 阅读 / 正在检测是否收录...
import 'package:flutter_vibrate/flutter_vibrate.dart';

vibration({required FeedbackType type}) async {
  bool canVibrate = await Vibrate.canVibrate;
  try {
    if (canVibrate == true) {
      return Vibrate.feedback(type);
    }
  } catch (e) {}
}
0

评论

博主关闭了所有页面的评论