fish-redux TabBarView 构建多个component报错

ql3eal8s  于 2022-11-19  发布在  其他
关注(0)|答案(1)|浏览(155)

TabBar循环构建多个Component会报错
1.Flutter Outline

2.code
SliverFillRemaining(
child: state.tabController == null
? LoadingView()
: TabBarView(
// physics: NeverScrollableScrollPhysics(), // 禁滑动事件
controller: state.tabController,
children: state.tabMap.entries.map((entry) {
// FIXME:报错
return viewService.buildComponent('homeList');
}).toList(),
),
)
3.log

4.疑问🤔️
使用姿势不对?

9udxz4iz

9udxz4iz1#

[✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.15.2
19C39d, locale zh-Hans-US)
• Flutter version 1.9.1+hotfix.6 at /Users/angus/flutter
• Framework revision 68587a0916 (9 weeks ago), 2019-09-13
19:46:58 -0700
• Engine revision b863200c37
• Dart version 2.5.0

[✓] Android toolchain - develop for Android devices (Android SDK
version 29.0.2)
• Android SDK at /Users/angus/Library/Android/sdk
• Android NDK location not configured (optional; useful for
native profiling support)
• Platform android-29, build-tools 29.0.2
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.2.1, Build version 11B500
• CocoaPods version 1.7.5

[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 41.1.2
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build
1.8.0_202-release-1483-b49-5587405)

[✓] IntelliJ IDEA Ultimate Edition (version 2019.2)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 38.2.4
• Dart plugin version 192.6527

[✓] VS Code (version 1.40.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.6.0

[✓] Connected device (2 available)
• AOSP on IA Emulator • emulator-5554 •
android-x86 • Android 9 (API 28) (emulator)
• iPhone XR • 9F07CB2E-9E7D-4D18-B78E-E980F0D3BFF8 •
ios • com.apple.CoreSimulator.SimRuntime.iOS-12-1
(simulator)

• No issues found!

相关问题