We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 043d180 commit 8b85cd1Copy full SHA for 8b85cd1
lib/components/widgetComp.dart
@@ -63,15 +63,16 @@ class IndexState extends State<Index> {
63
void init() async {
64
this._bodyList.length = 0;
65
String mdText = await this.getMdFile(this.mdUrl);
66
- print('mdText.length ======================================== ${mdText.length}');
67
if (mdText.length > 30) {
68
this
69
._bodyList
70
.add(await MarkDownComp.Index(mdText));
71
// demo
72
- this.demoChild.forEach((Widget item) {
73
- this._bodyList.add(ExampleComp.Index(child: item));
74
- });
+ if (this.demoChild != null && this.demoChild.length > 0) {
+ this.demoChild.forEach((Widget item) {
+ this._bodyList.add(ExampleComp.Index(child: item));
+ });
75
+ }
76
} else {
77
this._bodyList.add(UpdatingComp.Index());
78
}
0 commit comments