agent_dart icon indicating copy to clipboard operation
agent_dart copied to clipboard

Add support for pure dart projects.

Open awazgyawali opened this issue 3 years ago • 5 comments

Right now the project has a dependency on flutter thus it's not possible to use the package on a pure dart environment like a server-side dart.

Package behaves more like agent_flutter rather than agent_dart.

awazgyawali avatar Nov 08 '22 08:11 awazgyawali

Right now the project has a dependency on flutter thus it's not possible to use the package on a pure dart environment like a server-side dart.

Package behaves more like agent_flutter rather than agent_dart.

We agree, we will find a way to make a “pure dart” library

neeboo avatar Nov 08 '22 08:11 neeboo

Previously we tried to migrate to pure Dart but failed with the current implementation. IMO this will require a federated platform architecture for the plugin. We'll first try to update the plugin in that direction.

AlexV525 avatar Nov 09 '22 01:11 AlexV525

I needed agent for the flutter web. So I have created a module in my existing apps code using the federated platform architecture that can pick agent_dart on mobile platform and use agent_js on web platform to make query calls to the IC. It's barely working at the moment.

But seeing a pure dart agent_dart would be lovely.

On Wed, Nov 9, 2022 at 6:47 AM Alex Li @.***> wrote:

Previously we tried to migrate to pure Dart but failed with the current implementation. IMO this will require a federated platform architecture for the plugin. We'll first try to update the plugin in that direction.

— Reply to this email directly, view it on GitHub https://github.com/AstroxNetwork/agent_dart/issues/47#issuecomment-1308048911, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSPHZ277U7FIIQWXEJIVN3WHLZYXANCNFSM6AAAAAAR2BKZVE . You are receiving this because you authored the thread.Message ID: @.***>

awazgyawali avatar Nov 09 '22 02:11 awazgyawali

@awazgyawali Can you share some code on how you did integrate agent_js on web platform? I'm trying to build a starter-kit for Flutter + IC projects

neokree avatar Jan 28 '23 22:01 neokree

@awazgyawali Can you share some code on how you did integrate agent_js on web platform? I'm trying to build a starter-kit for Flutter + IC projects

CC: @sandeshgyw

awazgyawali avatar Feb 06 '23 12:02 awazgyawali