Leon
Leon

Reputation: 307

How to execute method after request some permissions in flutter?

Like such case, when press a button, firstly check needed permission status, if granted, execute method, otherwise request needed permission, but after request permission, not like native android, I can get permission status results via callback method, according of these results, I can decide if or not execute method. With flutter, how to do in order to skip check permission status again after request?

PS. another problem is it is possible do the check before runApp(MyApp())? if possible, could anyone show me some example codes.

Upvotes: 0

Views: 541

Answers (1)

Pavan Teja
Pavan Teja

Reputation: 3202

You can use permission_handler package to do this. permission handler

Upvotes: 1

Related Questions