Klemen Tusar

Results 234 comments of Klemen Tusar

I noticed that I get this when my app goes into the background and tries to make a REST call to an API (i.e. every 30 seconds): ``` ClientException: Cronet...

> Could someone post a stack trace so I can see what line of code in the `cronet_http` package this is coming from? The stack trace is not really helpful...

@UmairRehmat1 could you please provide a few more details regarding your setup?

You can always use the PR fork in your pubspec.yaml or even make your own fork and use that until it's merged.

> Can this be merged? I have to wait for approval 🤷

As a workaround, could you call your model `Article` or something similar?

Other options are: 1. using a [partial import](https://dart.dev/language/libraries#importing-only-part-of-a-library) ```dart import 'package:chopper/chopper.dart' hide Post; ``` 2. importing chopper using a [prefix](https://dart.dev/language/libraries#specifying-a-library-prefix) ```dart import 'package:chopper/chopper.dart' as chopper; ``` --- We're unlikely to...

> the best way to fix this is to make the generator add possible prefixes I'm just looking into that. Not sure about it either. 🙈 I suggest you don't...

Another workaround would be to rename `@Get()`, `@Post()`, `@Put()` etc. to `@GET()`, `@POST()`, `@PUT()` etc., but that's just kicking the can down the road, not to mention the breaking changes....

> Indeed looks like a tough problem. Have been experimenting a bit with macros but having checked this use case but maybe the dart augmentation offer a workaround. But this...