Closed kyeshmz closed 1 year ago
the problem here is that your IP "127.0.0.1" won't work when used in an android emulator, check this: https://developer.android.com/studio/run/emulator-networking
to fix it, you need to use 10.0.2.2 OR deploy your meilisearch instance to a temporary server, e.g. using https://cloud.meilisearch.com which has a very good free tier for testing
@ahmednfwela Hey thanks! Using the cloud solved my problem, it still would be great having an example repo for utilizing this in flutter
I don't think that's needed since the package is not dependent on flutter, and the api is just basic dart Futures
Hey! Just to let you know @brunoocasali is on Holiday and will answer your question once he comes back
I dont know, I think it would be cool to have a couple of pre built uis for people to test, but maybe its up to the team
@ahmednfwela do you think having multiple directories into "example" in this repository is possible without breaking what pub.dev expects?
Because if it is possible, it is a good idea. But just having a code snippet in the README is not worth it because it would be hard to maintain (there is no highlight if there is a syntax error, for example, so less code there, the better).
welcome back @brunoocasali π
I don't think that pub would play nice with this idea (yet)
but I can try creating one and see what would happen
The highlighted text part is just one of the good things that come out of a flutter example, thanks meilisearch team! Feel free to close this when the PR goes through
Thank you, @kyeshmz, but the merits are exclusive to @ahmednfwela, who is "just" incredible! π π
@kyeshmz would you close this in favor of #283 ?
Description Currently, it seems that the example is in basic dart, but a flutter example would be great for starting out. This basic code below does not seem to work with homebrew meilisearch instance that is ran, populated with the example script, giving a
Unhandled Exception: An error occurred while trying to connect to the Meilisearch instance:
.It seems to not work both with a masterKey or without a masterKey.
Are there precautions to running something like this in a simulator? Would also be down to create a PR for a simple example.
Basic example If the proposal involves something new or a change, include a basic example. How would you use the feature? In which context?
Other Any other things you want to add.