rive-app / rive-flutter

Flutter runtime for Rive
https://rive.app
MIT License
1.16k stars 180 forks source link

Support for setting HTTP headers #314

Closed tarek360 closed 1 year ago

tarek360 commented 1 year ago

Some companies don't let the rive file URLs without authentication, that's why they need to send headers in the network request.

Example of how to use:

RiveAnimation.network(
          'https://cdn.rive.app/animations/vehicles.riv',
          headers: {'Authorization': '{token}'},
        )

The same idea is in the flutter_svg package

mjtalbot commented 1 year ago

this has been applied to our upstream repo and pushed down & deployed for 0.11.2. thank you for the contribution @tarek360 !