Category: 未分类

简单记录下Flutter遇到的小坑

Google_Sign_In的文档真的是一言难尽,google-services.json如果不加进去idToken直接返回null。

做backendAuth的时候iOS和Android的token要分开处理,iOS使用的是Firebase iOS App ClientID, 而Android客户端要用Web ClientID (WTF???)

用Native code的时候一定记到要在MainActivity下加如下代码,否则你其他库的Native代码会提示missingPluginException(No implementation found for method init on channel plugins.flutter.io/google_sign_in)

@Override
public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) {
    GeneratedPluginRegistrant.registerWith(flutterEngine);
    New MethodChannel(...);
}

最后就是如果你的List一个item是null的话,在处理时读不出来会报: The getter ‘length’ was called on null. 可以说是非常的友好了。

谨以此文来安慰我一下午的时间和买了此服务器和域名一年也发不了一篇文章的心痛。

Linux Deploy Debian Note

任务管理器:sudo apt-get install mate-system-monitor

安装中文字体:sudo apt-get install ttf-wqy-microhei

中文输入法:sudo apt-get install fcitx-googlepinyin fcitx-module-cloudpinyin

安装java:

sudo apt-get install default-jre

sudo apt-get install default-jdk

安装pycharm:

sudo tar xfz pycharm-*.tar.gz -C /opt/

cd /opt/pycharm-*/bin

sudo ./pycharm.sh

安装Node.js

sudo curl -sL https://deb.nodesource.com/setup_10.x | sudo bash –
sudo apt-get install -y nodejs

 

Subscribing to the email notifications of availabilities to iPhone 6/6 plus on online Apple Store.

If you are waiting for the iPhone6 availability update on Apple Store, a website made by WEIP Tech Team has you covered. Repo.so is a free E-mail notification service that can let you know whenever the new iPhones are open for sale. You can simply go to the website http://repo.so and have your free subscription. You will receive an alert Email whenever the iPhone model you are watching is available.

 

Features and advantages of Repo.so

  1.      All the models of iPhone6/6 plus from all online Apple Stores are being monitored by our best servers.
  2.      Once the model you are watching is available, the server will send you an Email with the link to the model. You can add the iPhone to the card directly.
  3.      Email clients with notifications are highly recommended like iOS Mail App.

Read more

Ubuntu 13.10+ 添加32位库方法

  1. Install Synaptic from terminal window
  2. sudo apt-get install synaptic
  3. Launch synaptic and goto “settings > Repositories”
  4. click “other software > add”
  5. insert this line in the box “deb http://archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse”
  6. click ok and close synaptic
  7. in terminal “sudo apt-get update”
  8. in terminal “sudo apt-get install ia32-libs”

Android 4.3/4.4 通用的全屏开关~!

发现原来4.2用的全屏开关不好使,我就自己做一个4.3、4.4可用的全屏开关吧。。

先说好三件事:
1. 必须要root(原理我原来解释过,不多说)
2. 开关点一下就行,不要手欠多按。否则回不来别赖我
3. 请确认你在全屏前有全屏手势控制软件(PIE神马的)

Screenshot_2013-12-27-06-07-16

在Nexus7和Z Ultra上测试通过,其他机型理论没问题

移除Cydia中的360广告

360的广告在Cydia里面恶心好久了。。。

终于决定做个插件把它去掉

remove360ad

 

支持iOS6和iOS7,完美兼容64位~

使用方法:

添加威锋技术组精品源:http://repo.weiphone.com

安装Remove360ad,之后运行软件安装提示开关即可~

方便快捷,你值得拥有

 

Jackie099荣誉出品