Skip to content

Instantly share code, notes, and snippets.

View Bwolfs2's full-sized avatar
🤑
Trying to be rich!!! You can help me?

Vilson Blanco Dauinheimer (Bwolf) Bwolfs2

🤑
Trying to be rich!!! You can help me?
View GitHub Profile
@Bwolfs2
Bwolfs2 / README.md
Created December 19, 2023 20:38 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@Bwolfs2
Bwolfs2 / auth_interceptor.dart
Created January 27, 2021 20:01 — forked from douglasiacovelli/auth_interceptor.dart
This is a code for an auth interceptor for Dio, which uses a header to avoid retrying indefinitely to refresh the token.
/// This interceptor is simplified because is doesn't contemplate
/// a refresh token, which you should take care of.
/// I haven't tested this code, but I believe it should work.
/// If you have some feedback, please leave a comment and I'll review it :) Thanks.
class AuthInterceptor extends InterceptorsWrapper {
final Dio loggedDio;
final Dio tokenDio;