Write the Code. Change the World.

3月 23

composer 安装包的时候,可能出现 memory 不足问题处理。

error

PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223

解决步骤

  • 使用 composer -h 找到 composer 的位置.
  • 开始安装
php -d memory_limit=-1 /usr/local/bin/composer require laravel/sanctum

阅读全文 >>

3月 10

https://ask.dcloud.net.cn/docs/#//ask.dcloud.net.cn/article/152

https://flutter.cn/docs/deployment/ios

推送证书只有 p12 文件,没有描述文件。

https://help.aliyun.com/document_detail/30071.html

常见问题

证书不备信任 https://www.jianshu.com/p/c814f1d653d8

证书不备信任 https://www.jianshu.com/p/af6acf3cd484

无法导出 p12 https://www.jianshu.com/p/b7545bab4d53

阅读全文 >>

3月 08

苹果 app 要上架,就得有开发者账号。所以注册和购买就是很必要的事情。怎么做呢。

  1. 邓白氏编码。我已经有了。
  2. 注册苹果账号,暂时只能定义为苹果账号。
  3. 开始打开网站注册 https://developer.apple.com,填入公司主体以及邓白氏编码等信息。等待审核。
  4. 审核通过后,付款吧。

相关信息

https://www.jianshu.com/p/8ffe1f35fa2f

阅读全文 >>

3月 04

水波纹效果用在导航栏中的确是很难看。就是想干掉。

bottomNavigationBar 去掉水波纹效果。

套一层 Theme 搞定

bottomNavigationBar: Theme(
        data: ThemeData(
          brightness: Brightness.light,
          splashColor: Colors.transparent,
          highlightColor: Colors.transparent,
        ),
        child: BottomNavigationBar()
        )

组件大全:
https://edu.csdn.net/learn/14065

来源

https://blog.csdn.net/mubowen666/article/details/104569812/

阅读全文 >>

3月 04

抓包工具 Fiddler Everywhere。有时候,抓取 app 中的数据很有必要。这个时候抓包工具就上场了。还是一如既往的使用 fiddler。可是 Fiddler Everywhere 界面更美观,更好用。

https://www.telerik.com/download/fiddler-everywhere

mac 抓包工具 charles 4.6.3

https://macwk.com/soft/charles

https://blog.csdn.net/qq_44730186/article/details/107817196

更多

https://www.cnblogs.com/jinjiangongzuoshi/p/13577025.html

https://www.fujieace.com/penetration-test/fiddler-everywhere.html
参考上边这个设置完成就 ok 了。

问题

iphone 端,连上了,却不可以上网。

到这来,其实是少做了一步,在苹果手机这来。依次操作。
手机设置->通用->关于本机->证书信任设置,信任就可以了。

阅读全文 >>

2月 26

android studio 编译 android 端,卡在 Running Gradle task 'assembleDebug'... 这里了 。卡在这里,卡了好久,总是不好,怎么办呢,使用网上的方法,注释加修改镜像的方法也没好。路似乎到头了。可终结还是要解决问题。弄了这么多,还不是要 gradle 。弄好 gradle 不就可以了么。

知乎上关于 gradle 的说法:
https://www.zhihu.com/question/30432152

操作一波

其实,修改镜像是可以完全解决的。这里是另外一条路。

gradle 资源:https://services.gradle.org/distributions/

目前,更新到 6.8.3 版本。那么,我们就手动将这个下下来。

阅读全文 >>

2月 26

任何一款 app 都必须有名字,icon 以及启动页。本来这些是在交付前完成就好,因为有默认的,现在第一步来弄这个。也就是从零创建一个 flutter 程序后,就开始配置这些。

工具

在 app store 中找搜 app icon, 找到 图标构建-更快打导出图标组。该工具好用好免费。

打开 app 后,拖动你之前已经做好的 png 图片到 app 中。选择要生成的平台。这里选择 ios 和 androis,然后稍微设置下,点击导出。就帮你全自动生好了。

文件结构如下:

阅读全文 >>

2月 26

在 ios 14+,flutter debug app 只能从工具里启动运行。一旦脱离。点击 app 就会闪退。这个时候,打 release 包就很有必要了。虽然这个包有效期是 7 天,也是好的。当然,有开发者证书更好。

原话

In iOS 14+, debug mode Flutter apps can only be launched from Flutter tooling, IDEs with Flutter plugins
or from Xcode.

Alternatively, build in profile or release modes to enable launching from the home screen.

解决方法

flutter run --release

或
flutter build ios

flutter install

阅读全文 >>