Hi,
I downloaded your code in order to manipulate a bit Retrofit before integrating it in my Flutter project...
The app launches and work but when i create Post entity for exemple and a method
@GET("/posts")
Future<List> getPosts();
in the ApiClient, i have to "rebuild" the .g.dart files
I tried :
flutter pub run build_runner watch
flutter pub run build_runner build
sometimes with --delete-conflicting-outputs liek the terminal telss me to do but ::
1 - it never finishes ! (more 45sec last time before i killed it)
2 - i have wierd stuff like ::
Bad state: Unexpected diagnostics: C:\src\flutter\flutter\bin\cache\pkg\sky_engine\lib\ui\channel_buffers.dart:166:25 - This requires the 'non-nullable' language feature to be enabled. C:\src\flutter\flutter\bin\cache\pkg\sky_engine\lib\ui\channel_buffers.dart:30:49 - This requires the 'non-nullable' language feature to be enabled. C:\src\flutter\flutter\bin\cache\pkg\sky_engine\lib\ui\channel_buffers.dart:390:19 - This requires the 'non-nullable' language feature to be enabled. etc...
Can you please tell me what to do in order to fix that and so i can add "Post" and "Comment" class to your application please ?
Hi, I downloaded your code in order to manipulate a bit Retrofit before integrating it in my Flutter project...
The app launches and work but when i create Post entity for exemple and a method @GET("/posts") Future<List> getPosts();
in the ApiClient, i have to "rebuild" the .g.dart files
I tried :
1 - it never finishes ! (more 45sec last time before i killed it) 2 - i have wierd stuff like ::
Bad state: Unexpected diagnostics: C:\src\flutter\flutter\bin\cache\pkg\sky_engine\lib\ui\channel_buffers.dart:166:25 - This requires the 'non-nullable' language feature to be enabled. C:\src\flutter\flutter\bin\cache\pkg\sky_engine\lib\ui\channel_buffers.dart:30:49 - This requires the 'non-nullable' language feature to be enabled. C:\src\flutter\flutter\bin\cache\pkg\sky_engine\lib\ui\channel_buffers.dart:390:19 - This requires the 'non-nullable' language feature to be enabled.
etc...Can you please tell me what to do in order to fix that and so i can add "Post" and "Comment" class to your application please ?
Thanks in advance :)