Skip to content

Conversation

@andrelucassvt
Copy link

dt money

💻 Suporte ao WEB

💻 Adicionado suporte ao web nas requisições

Descrição do envio aqui

Para testar, faça ....

📷 Screenshots


Checklist

  • Adicionei uma nova feture
  • Ajustei um Bug
  • Adicionei novos testes
  • Todos os testes estão rodando
  • Added a link to the repo in the PR


dependencies:
dio: ^5.8.0+1
foundation: ^0.0.5
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Esse aqui é um package abandonado.

Suggested change
foundation: ^0.0.5

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdade! Apesar do kIsWeb dentro da lib ser algo simples, é melhor usar direto a comparação pura, sem a lib

Pode remover a dependência e substituir o kIsWeb por bool.fromEnvironment('dart.library.js_util'), que verifica se tem um js.util rodando no ambiente

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

O package foundation do próprio flutter já tem o kIsWeb então tá tranquilo, bastaria remover essa linha aqui, nem precisa mexer no código 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants