‘AMapSearch-NO-IDFA’ uses the unencrypted ‘http’ protocol to transfer the Pod解决
- 2020-11-23
- flutter
错误提示 [!] 'AMapFoundation' uses the unencrypted 'http' protocol to transfer the Pod. Please be sure you're in a safe network with only trusted hosts. Otherwise, please reach out to the l...
Automatically assigning platform `ios` with version `9.0` on target `Runner`解决
- 2020-11-23
- flutter
Automatically assigning platform ios with version 9.0 on target Runner because no platform was specified. Please specify a platform for this target in your Podfile ...
Flutter: Error running pod install解决
- 2020-11-23
- flutter
错误信息: Launching lib/main.dart on iPhone 11 Pro Max in debug mode... Running pod install... CocoaPods' output: ↳ Preparing Analyzing dependencies Inspecting targets to integrate Using `AR...
Flutter隐藏控件Offstage/Visibility/Opacity/ifelse
- 2020-09-24
- flutter
在flutter里隐藏控件可以通过多种方式实现。Visibility和Offstage的区别就是保不保留空间,比如你控件设置了宽高,使用Visibility隐藏,但还会留有一块空白在那里的,类似android的gone和visible一样的效果。另...
优雅的退出Flutter应用
- 2020-08-17
- flutter
flutter默认情况下的退出应用是不彻底的,会在后台继续运行VM虚拟机,但一些场景下可能需要强制/彻底关闭应用程序。 Flutter退出/关闭应用 在IOS上没有退出/关闭应用的概念,起码是在编程概念和方法中没有...
Flutter应用图标自适应方案:标准规范自动圆角不变形
- 2020-06-22
- flutter
当下手机品牌众多,各家手机所使用的OS又都不相同,针对应用图标的处理也有差异,如IOS系统下会强制进行圆角处理,但Android系统下虽然Google明确指出不建议系统强制改变应用图标,或强制要求开发者去改变图标,...
用Flutter固定屏幕方向
- 2020-05-30
- flutter
以下为我用Flutter固定屏幕方向,也称Flutter禁止横屏坚屏的方法。 静态方法Flutter固定屏幕方向 导包 import 'package:flutter/services.dart'; 支持横坚屏切换 SystemChrome.setPreferredOrien...
Flutter动态设置图标Icon,使用String/JSON/数组字符串
- 2020-05-14
- flutter
Flutter中,可以像Web开发一样使用iconfont,iconfont即“字体图标”,它是将图标做成字体文件,然后通过指定不同的字符而显示不同的图片。 在字体文件中,每一个字符都对应一个位码,而每一个位码对应一个显示...
如何根据Flutter中的内容调整BottomSheet的高度
- 2020-04-20
- flutter
将默认的BottomSheet添加到Flutter应用程序时,必须克服某些困难。一种是sheet的高度。 我们无法更改sheet的高度,最大高度将为屏幕的一半。但是我们可以自定义BottomSheet的代码以提供完整的高度。 Flutt...