![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Flutter
langyalaoa
这个作者很懒,什么都没留下…
展开
-
Flutter InAppWebView在showModalBottomSheet中无法滚动
设置showModalBottomSheet的enabledDrag为falseshowModalBottomSheet( context: context, isScrollControlled: true, enableDrag: false, builder: (BuildContext modalContext) { return Container( height: MediaQuer原创 2021-07-06 15:06:51 · 680 阅读 · 0 评论 -
Flutter 安卓真机无线调试
# 无线调试(882bc240:设备id,192.168.137.147:设备ip)adb devicesadb -s 882bc240 tcpip 9999adb connect 192.168.137.147:9999原创 2021-06-10 16:52:28 · 785 阅读 · 0 评论 -
Flutter一键生成所有的icon
1、在pubspec.yaml中安装插件dev_dependencies: flutter_launcher_icons: 0.9.0原创 2021-06-10 16:50:58 · 243 阅读 · 0 评论 -
MAC清除所有的mobileprovision
cd ~/Library/MobileDevice/Provisioning\ Profiles/rm *.mobileprovision原创 2021-06-10 16:47:32 · 226 阅读 · 0 评论 -
Flutter IOS H5支付
# 因为app的微信支付用的是h5支付,为了支付之后可以跳转回app,ios打包需要修改info.plist的schema为当前环境的微信支付的域名`<array> <dict> <key>CFBundleURLName</key> <string>crib</string> <key>CFBundleURLSchemes</key> .原创 2021-06-10 16:45:44 · 355 阅读 · 0 评论 -
Flutter ios真机运行闪退
项目根目录cd ios/pod updatepod installflutter clean如果还报错,在xcode中run一下,查看报错信息原创 2021-06-10 16:41:26 · 1276 阅读 · 0 评论 -
Flutter TextFormField 监听focus、blur事件
Focus( child: TextFormField(...), onFocusChange: (hasFocus) { if(hasFocus) { // do stuff } },)原创 2021-06-10 16:39:11 · 1514 阅读 · 0 评论 -
Flutter项目中有些依赖不支持64位的library的解决方式
由于项目有些依赖不支持64位,而flutter debug时只能是64位,所以需要修改gradle.dart a. 打开flutter/packages/flutter_tools/lib/src/android/gradle.dart 搜索-Ptarget-platform=$targetPlatforms,替换成-Ptarget-platform=android-arm,有两处...原创 2019-12-10 14:54:44 · 525 阅读 · 0 评论 -
Flutter中map对象强制类型转换
list.map<Widget>((item){}).toList();原创 2019-12-10 14:49:56 · 3815 阅读 · 0 评论 -
Flutter无context页面跳转及获取全局context
通过navigatorKey的方式void main() { runApp(MyApp());}final GlobalKey<NavigatorState> navigatorKey = new GlobalKey<NavigatorState>();class MyApp extends StatelessWidget { MyApp() {...原创 2019-12-10 14:43:54 · 8519 阅读 · 0 评论 -
Flutter在showModalBottomSheet中使用StatefulWidget
showModalBottomSheet( backgroundColor: Colors.transparent, context: context, isScrollControlled: true, builder: (BuildContext context) { return StatefulB...原创 2019-12-10 14:32:11 · 428 阅读 · 2 评论