ducafecat / flutter_ducafecat_news_getx Goto Github PK
View Code? Open in Web Editor NEWflutter2 + dio4 + getx4
flutter2 + dio4 + getx4
baseUrl直接写死 如果要调其他地址怎么办
BaseOptions options = new BaseOptions(
// 请求基地址,可以包含子路径
baseUrl: SERVER_API_URL,
);
因为dio
升级到最新版,已经取消了lock
,采用了新模式拦截器,请问能加上去刷新token的功能么?
The argument type 'RefreshConfiguration Function()' can't be assigned to the parameter type 'Widget Function(BuildContext, Widget?)',在main.dart中ScreenUtilInit的builder值报错
在common/utils/loading.dart文件中,Loading中加入下面这行
..maskType = EasyLoadingMaskType.custom
如题
api 接口404 了
我的项目使用了 木兰宽松许可证第二版(MulanPSL v2),并且我在你的代码里面没有看到任何”开源协议“
所以发一个 Issue ,向你请求”许可我’copy‘你的代码”?(如果你不同意,我会再收到你的确认后删除之)
我之后copy 过来了,https://gitee.com/imboy-pub/imboy-flutter/blob/dev/lib/service/storage.dart
The argument type 'RefreshConfiguration Function()' can't be assigned to the parameter type 'Widget Function(BuildContext, Widget?)'.
can try adding (BuildContext context, Widget? widget).
Note that your app won't be available to users running Android SDKs below 19.
can try adding minSdkVersion 19.
Your project requires a newer version of the Kotlin Gradle plugin.
when I ran :
flutter create .
flutter run -d chrome
I received the Error:
starting services ...
Error: Unsupported operation: Platform._operatingSystem
at Object.throw_ [as throw] (http://localhost:60292/dart_sdk.js:5041:11)
at Function._operatingSystem (http://localhost:60292/dart_sdk.js:53433:17)
at Function.get operatingSystem [as operatingSystem] (http://localhost:60292/dart_sdk.js:53479:27)
at get _operatingSystem (http://localhost:60292/dart_sdk.js:53392:27)
at Function.desc.get [as _operatingSystem] (http://localhost:60292/dart_sdk.js:5530:17)
at get isIOS (http://localhost:60292/dart_sdk.js:53416:26)
at Function.desc.get [as isIOS] (http://localhost:60292/dart_sdk.js:5530:17)
at global_config.GlobalConfigService.new.init
(http://localhost:60292/packages/flutter_ducafecat_news_getx/common/services/global_config.dart.lib.js:34:4 0)
at init.next ()
at runBody (http://localhost:60292/dart_sdk.js:37422:34)
at Object._async [as async] (http://localhost:60292/dart_sdk.js:37453:7)
at global_config.GlobalConfigService.new.init
(http://localhost:60292/packages/flutter_ducafecat_news_getx/common/services/global_config.dart.lib.js:32:2 0)
at http://localhost:60292/packages/flutter_ducafecat_news_getx/main.dart.lib.js:178:156
at get_instance.GetInstance..putAsync
(http://localhost:60292/packages/get/get_instance/src/get_instance.dart.lib.js:138:34)
at putAsync.next ()
at runBody (http://localhost:60292/dart_sdk.js:37422:34)
at Object._async [as async] (http://localhost:60292/dart_sdk.js:37453:7)
at get_instance.GetInstance..putAsync
(http://localhost:60292/packages/get/get_instance/src/get_instance.dart.lib.js:137:20)
at Inst$124putAsync
(http://localhost:60292/packages/get/get_instance/src/extension_instance.dart.lib.js:79:45)
at Inst$124putAsync.next ()
at runBody (http://localhost:60292/dart_sdk.js:37422:34)
at Object._async [as async] (http://localhost:60292/dart_sdk.js:37453:7)
at Object.Inst$124putAsync [as Inst|putAsync]
(http://localhost:60292/packages/get/get_instance/src/extension_instance.dart.lib.js:78:18)
at initServices (http://localhost:60292/packages/flutter_ducafecat_news_getx/main.dart.lib.js:178:48)
at initServices.next ()
at runBody (http://localhost:60292/dart_sdk.js:37422:34)
at Object._async [as async] (http://localhost:60292/dart_sdk.js:37453:7)
at Object.initServices
(http://localhost:60292/packages/flutter_ducafecat_news_getx/main.dart.lib.js:176:18)
at main$ (http://localhost:60292/packages/flutter_ducafecat_news_getx/main.dart.lib.js:171:18)
at main$.next ()
at runBody (http://localhost:60292/dart_sdk.js:37422:34)
at Object._async [as async] (http://localhost:60292/dart_sdk.js:37453:7)
at main$ (http://localhost:60292/packages/flutter_ducafecat_news_getx/main.dart.lib.js:170:18)
at main (http://localhost:60292/web_entrypoint.dart.lib.js:37:29)
at main.next ()
at http://localhost:60292/dart_sdk.js:37403:33
at _RootZone.runUnary (http://localhost:60292/dart_sdk.js:37274:59)
at _FutureListener.thenAwait.handleValue (http://localhost:60292/dart_sdk.js:32530:29)
at handleValueCallback (http://localhost:60292/dart_sdk.js:33057:49)
at Function._propagateToListeners (http://localhost:60292/dart_sdk.js:33095:17)
at _Future.new.[_completeWithValue] (http://localhost:60292/dart_sdk.js:32943:23)
at http://localhost:60292/dart_sdk.js:32194:46
at _RootZone.runUnary (http://localhost:60292/dart_sdk.js:37274:59)
at _FutureListener.then.handleValue (http://localhost:60292/dart_sdk.js:32530:29)
at handleValueCallback (http://localhost:60292/dart_sdk.js:33057:49)
at Function._propagateToListeners (http://localhost:60292/dart_sdk.js:33095:17)
at _Future.new.[_completeWithValue] (http://localhost:60292/dart_sdk.js:32943:23)
at async._AsyncCallbackEntry.new.callback (http://localhost:60292/dart_sdk.js:32964:35)
at Object._microtaskLoop (http://localhost:60292/dart_sdk.js:37526:13)
at _startMicrotaskLoop (http://localhost:60292/dart_sdk.js:37532:13)
at http://localhost:60292/dart_sdk.js:33303:9
It is the the easist way to debug a app on Desktop and Web devices. I guess maybe the project is not ready for Desktop and Web.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.