Aman-Malhotra / Volume_Flutter

Now you can change android volumes in Flutter. You can change MEDIA volume, NOTIFICATION volume, RING Volume, VOICE CALL Volume, ALARM Volume and SYSTEM Volume. This is exclusively for android right now because I don't have max to do the IOS coding and I don't have experience in IOS coding as well. Pull requests for IOS Implementation are welcome.
MIT License
23 stars 31 forks source link

Volume control panel #2

Closed vodemn closed 4 years ago

vodemn commented 5 years ago

Is it possible to hide system volume control panel while changing volume from app?

egoan82 commented 4 years ago

Good day to all,

Friend you managed to solve that problem, the same thing happens to me with the app I am developing.

Best regards from Colombia 🇨🇴

Aman-Malhotra commented 4 years ago

Sorry for such a late update guys . I just checked and there is a way of doing that. I'll see if that can be implemented via plugin and if android allows that according to latest standards.

egoan82 commented 4 years ago

Thanks for responding, I'll be on the lookout for the update.

Greetings from Colombia 🇨🇴

Aman-Malhotra commented 4 years ago

@egoan82 @vodemn Hey guys, this feature has been added in the new version - 0.1.4 ✌️(i had to search chrome and copy this emoji btw ).

There's an optional parameter added in the Volume.setVol(..) function named showVolumeUI. Which you can use like this :

To show the system UI while changing audio :

await Volume.setVol(i, showVolumeUI: ShowVolumeUI.SHOW);

To hide the system UI while changing audio :

await Volume.setVol(i, showVolumeUI: ShowVolumeUI.HIDE);

You can refer to the doc on this link Volume to get more detailed explaination. I am closing this issue as of now. You are welcome to open it up if there are any issues in the implemetation. If there are any more feature request you guys can open up a new issue for the same.

egoan82 commented 4 years ago

Excellent news, thanks for the update.

Greetings from Colombia.