1 | enum MediaType { |
定义枚举和OC差别不大,取值的时候不可以直接和int比较,需要从枚举数组中根据index拿出来,比OC多了一步
1 | enum MediaType { |
定义枚举和OC差别不大,取值的时候不可以直接和int比较,需要从枚举数组中根据index拿出来,比OC多了一步
The process of compiling consists of three different steps:
1.The compilier front-end converts the source code into some kind of intermediate representation.
2.The optimizer performs a sequence of optimizing transformations on the IR to render it smaller and more performant:redundant code is removed,results are pretaculated,code is inlined, etc.This crucial step of the compilation process makes use of IR,rather than cource code or machine code,because it can more easily be interreted by the optimizer.
When we are talking about bitcode,we are actually talking about the IR used by the Clang Compilier.
With the bitcode embedded in the executable,Apple is able to recompile applications without interacting with the developer.This has a lot of advantages.
A sliver that places multiple box children in a linear array along the main axis.
Each child is forced to have the SliverConstraints.crossAxisExtent in the cross axis but determines its own main axis extent.
SliverList determines its scroll offset by “dead reckoning“ because children outside the visible part of the sliver are not materialized, which means SliverList cannot learn their main axis extent.Instead,newly materialized children are placed adjacent to existing children.
1 | //函数 |
总结:在showCupertinoModalPopup方法里返回CupertinoActionSheet,里面的元素由CupertinoActionSheetAction组成,有default和destructive类型可选,用法和UI和苹果大致一样
处理方法
1 | sudo spctl --master-disable |
按住command键,鼠标右键菜单选择打开app,出现窗口会出现打开按钮,正常情况下不会出现
完。
两种方案
1.借用第三方插件,让当前页面保持常量,别的页面跟随系统
1 | wakelock: ^0.1.4+2 |
2.调用fijkplayer自身的常量参数 二选一
1 | await player.setOption(FijkOption.hostCategory, "request-screen-on", 1); |
参考:https://www.jianshu.com/p/8750de450850
https://fijkplayer.befovy.com/docs/zh/host-option.html#gsc.tab=0
昨天以为pubspec.lock文件和cocoapods的profile.lock文件性质一样,可以生成,所以删除,结果遇见了编译报错,即使在执行了
1 | flutter pub get |
命令重新生成后,经过一番研究和队友协助,找到是这个问题,把老的恢复回来工程编译正常,下面是报错的关键字
1 | Execution failed for task ':app:processDebugManifest'. > Manifest merger failed : Attribute provider... |
做记录方便以后查阅。
在main.dart文件的materialAPP.home属性返回一个UI,这个UI就是启动页,启动页的scanffold的body,返回一张图片
1 | return MaterialApp( |
in SplashPage
1 | @override |
在工程文件夹内,git管理,忽略pubspec.lock文件 ,运行
1 | flutter pub get |
/ios文件夹里,忽略Pods文件夹,Podfile.lock文件,*.xcworkspace文件,运行
1 | pod install |
1 | ssh-add ~/.ssh/id_rsa |