benjamindean / flutter_vibration

Handle vibration on iOS and Android in Flutter apps
229 stars 69 forks source link

Add support for amplitude control under Android 8.0 and later #10

Closed pmundt closed 5 years ago

pmundt commented 5 years ago

Newer API levels (from 26 on) support determining amplitude control capability and varying the amplitude of vibrations, both in one-shot and in waveform-based patterns. This adds basic support for working with these aspects while: (1) providing a safe default for devices on earlier API levels (which notice no change in behaviour); and (2) enabling apps to begin future-proofing for newer API levels by testing the control capability.

benjamindean commented 5 years ago

Thank you for your contribution! I added one minor comment to the PR.

benjamindean commented 5 years ago

Thank you once again! Released version 1.2.0.