yubo725 / flutter-osc Goto Github PK
View Code? Open in Web Editor NEW基于Google Flutter的开源**客户端,支持Android和iOS。
License: MIT License
基于Google Flutter的开源**客户端,支持Android和iOS。
License: MIT License
oneplus 5+ 点两下直接ANR了
在动弹页面push到另外一个页面再pop回来切换tab页面重新绘制【自动滑动到顶部】
请问下载源码后,需要进行哪些相关的配置吗?
vscode 打开源码 无法运行
在info.plist增加以下兩行
<key>NSCameraUsageDescription</key>
<string>Camera permission is required for barcode scanning.</string>
(我的裝置是ios12)
报错:Because flutter_webview_plugin 0.1.6 requires SDK version >=1.19.0 <2.0.0 and no versions of flutter_webview_plugin match >0.1.6 <0.2.0, flutter_webview_plugin ^0.1.6 is forbidden.
So, because flutter_osc depends on flutter_webview_plugin ^0.1.6, version solving failed.
Xcode's output:
↳
In file included from /Users/guohaisheng/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.4.2/ios/Classes/SharedPreferencesPlugin.m:5:
/Users/guohaisheng/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.4.2/ios/Classes/SharedPreferencesPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Could not resolve all files for configuration ':barcode_scan:classpath'.
Could not resolve com.android.tools.build:gradle:3.1.4.
Required by:
project :barcode_scan
> Could not resolve com.android.tools.build:gradle:3.1.4.
> Could not get resource 'https://maven.google.com/com/android/tools/build/gradle/3.1.4/gradle-3.1.4.pom'.
> Could not HEAD 'https://maven.google.com/com/android/tools/build/gradle/3.1.4/gradle-3.1.4.pom'.
> Connect to maven.google.com:443 [maven.google.com/74.125.198.94, maven.google.com/2607:f8b0:4003:c05:0:0:0:5e] failed: No route to host (connect failed)
老铁,这项目什么开源协议?
是否先运行flutter packages get
然后flutter clean && flutter build ios
就可以了?
提示我SharedPreferencesPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
是否我还需要什么步骤?
ERR : Package image_picker has no versions that match >=0.4.1 <0.5.0 derived from:
| - flutter_osc depends on version ^0.4.1
……
pub get failed (1)
exit code 1
How to does the event bus works in this project? Any tutor? I am using stream which is really anoying that in StreamBuilder every msg will repeat receive many times
评论的时候,键盘遮挡了评论的区域,导致看不见已输入的内容~
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher.
The following dependencies do not satisfy the required version:
project ':barcode_scan' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.51
这是是插件的版本不对导致的吗?请问一下该怎么改呢?
服务器是不是挂了
android 端的 一直在加载 刷新中 不是网的问题 还有有时候切换页面 会卡顿
flutter run 后出现以下问题。。。
Running "flutter packages get" in flutter_osc...
Because every version of flutter_test from sdk depends on csslib 0.14.5 which doesn't match any versions, flutter_test from sdk is forbidden.
So, because flutter_osc depends on flutter_test any from sdk, version solving failed.
使用翻墙也不行。。。
下载后在ios下运行报错,flutter not found请教如何解决
目前只看到了这两种。
switch (item) {
case TAG_START:
return Divider(height: 1.0,);
break;
case TAG_END:
return Divider(height: 1.0,);
break;
case TAG_CENTER:
return Padding(
padding: const EdgeInsets.fromLTRB(50.0, 0.0, 0.0, 0.0),
child: Divider(height: 1.0,),
);
break;
case TAG_BLANK:
return Container(
height: 20.0,
);
break;
这个break
应该是不需要的吧。return
就中断执行后面的语句了
这边存在两个问题。 这个 w 变量其实并不需要吧感觉。
Widget w = Divider(
height: 1.0,
);
switch (item) {
case TAG_START:
w = Divider(
height: 1.0,
);
break;
case TAG_END:
w = Divider(
height: 1.0,
);
break;
case TAG_CENTER:
w = Padding(
padding: const EdgeInsets.fromLTRB(50.0, 0.0, 0.0, 0.0),
child: Divider(
height: 1.0,
),
);
break;
case TAG_BLANK:
w = Container(
height: 20.0,
);
break;
}
return w;
把w =
那部分替换成return
。再把break
去掉,然后再加个default
条件就好了。
PS: 我还没怎么写过 dart。以上都是建议, 不知道改了以后编辑器会不会报错啥的 🍨
这是什么问题,怎么解决 ?
服务器 应该又挂了。。。
非常感谢博主的分享精神,本人也正在项目中探索引进flutter,不知道博主对flutter和native混合开发有什么经验可以分享分享
登录页面,使用原生和Webview方式登录 一直都是在loadIng状态,无法登录。
测试用例:
环境Android手机,华为P9;
1、打开flutter_osc应用,显示资讯;
2、点击Item(我点开的是Chrome将不再标记HTTPS页面为安全站点),跳转到资讯详情页面;
3、点击页面中右上角的关闭按钮(应该是开源**的广告),显示正常;
4、点击Android手机的Back键,显示Loading,一直不消失。
onStateChanged.listen这个监听应该有效的,试了一下应该没问题,也许是插件版本不一样
flutter run时报package:http/http.dart不存在,是需要引入什么文件或库吗?
经常莫名其妙的ANR,怎么点都没反应,是代码问题,还是flutter本身有什么硬伤啊
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.