Flutter
iOS_MingXing
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
flutter TabBar 设置isScrollable 第一个有间距
Flutter TabBar设置isScrollable时首项间距问题的解决方案 当TabBar设置isScrollable=true时,首项可能会出现间距问题。解决方法是在TabBar中添加tabAlignment: TabAlignment.center属性即可。该设置可以确保标签项居中显示,消除首项间距。 代码示例中展示了完整的TabBar配置,包括控制器、颜色设置、指示器样式等属性。通过添加tabAlignment属性,成功解决了首项间距问题,使TabBar显示更加美观。 [图片1显示问题效果] [原创 2025-09-09 17:57:49 · 369 阅读 · 0 评论 -
Cycle inside Runner; building could produce unreliable results.
在xcode中找到Runner中的Build Phases选项,将Embed App Extensions拖到Run Script下面即可,如图。我的项目是flutter,效果是一样的,将 embed foundation Extension 移到run script下面即可。将开发的extension。原创 2024-08-26 16:21:39 · 905 阅读 · 0 评论 -
Flutter Future<List<StatsReport>> 数据类型解析
flutter 中遇到 Future<List> 这种future嵌套的数据解析,尝试了一些方法 最后解析过程 var reports = await peercon?.getStats(); reports?.forEach((report) { StatsReport reportDetail = report; print("-----------"); print(reportDetail原创 2022-04-02 09:55:17 · 2416 阅读 · 0 评论 -
flutter webrtc 编译报错 Could not build the precompiled application for the device.
flutter webrtc运行报错 Running Xcode build... Xcode build done. 19.7s Failed to build iOS app Error output from Xcode build: ↳ 2022-03-31 15:36:50.750 xcodebuild[10731:312247] Requested but did not find extension p原创 2022-03-31 15:53:47 · 7904 阅读 · 0 评论 -
Failed assertion: line 3180 pos 12: ‘debugNeedsPaint‘: is not true
进行flutter 点击截图 调用第一次截图方法报错 Failed assertion: line 3180 pos 12: ‘debugNeedsPaint’: is not true. flutter: 'package:flutter/src/rendering/proxy_box.dart': Failed assertion: line 3180 pos 12: '!debugNeedsPaint': is not true. 解决方案: 在调用截图方法的时候增加一个延时调用即可 onPres原创 2022-03-30 10:15:35 · 2395 阅读 · 0 评论 -
e: Incompatible classes were found in dependencies. Remove them from the classpath or use ‘-Xskip-me
flutter 跑Android 项目报错 e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors e: /Users/***/.gradle/caches/transforms-3/06a50373d656b3b6af619c1f8ffd8be9/transformed/jetifi原创 2022-03-29 11:09:39 · 10388 阅读 · 0 评论 -
MAC Flutter run 卡在Running Gradle task ‘assembleDebug‘的应用
MAC Flutter run 卡在Running Gradle task 'assembleDebug’的应用 然后使用 flutter doctor 报错 [!] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) ✗ cmdline-tools component is missing Run `path/to/sdkmanager --install "cmdli原创 2022-03-24 17:06:33 · 2606 阅读 · 0 评论 -
Flutter Missing parentheses in call to ‘print‘. Did you mean print(‘Insert‘, text,‘to line‘, line_nu
跑 Flutter 项目报错 SyntaxError: Missing parentheses in call to ‘print’. Did you mean print(‘Insert’, text,‘to line’, line_number)? 错误原因 :python3 中的 print 是一个内置函数, 而 python2 中的 print是一个语法结构 ,因此,python3 在打印时需要 加(),而 python2 打印时不需要加()。 比如: python2.x: print “今天是20原创 2022-03-24 10:15:15 · 2419 阅读 · 0 评论
分享