File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -62,19 +62,19 @@ class IndexState extends State<Index> {
62
62
63
63
void init () async {
64
64
this ._bodyList.length = 0 ;
65
- if (this .demoChild != null && this .demoChild.length != 0 ) {
66
- // markdown text
65
+ String mdText = await this .getMdFile (this .mdUrl);
66
+ print ('mdText.length ======================================== ${mdText .length }' );
67
+ if (mdText.length > 30 ) {
67
68
this
68
69
._bodyList
69
- .add (await MarkDownComp .Index (await this . getMdFile ( this .mdUrl) ));
70
+ .add (await MarkDownComp .Index (mdText ));
70
71
// demo
71
72
this .demoChild.forEach ((Widget item) {
72
73
this ._bodyList.add (ExampleComp .Index (child: item));
73
74
});
74
75
} else {
75
76
this ._bodyList.add (UpdatingComp .Index ());
76
77
}
77
-
78
78
setState (() {
79
79
this .loading = false ;
80
80
});
@@ -138,14 +138,14 @@ class IndexState extends State<Index> {
138
138
);
139
139
},
140
140
),
141
- // IconButton(
142
- // icon: Icon(
143
- // Icons.code,
144
- // ),
145
- // onPressed: () async {
146
- // this.openPage(context);
147
- // },
148
- // ),
141
+ IconButton (
142
+ icon: Icon (
143
+ Icons .code,
144
+ ),
145
+ onPressed: () async {
146
+ this .openPage (context);
147
+ },
148
+ ),
149
149
IconButton (
150
150
icon: Icon (Icons .share),
151
151
onPressed: () {
Original file line number Diff line number Diff line change 1
1
import 'development.dart' as Development;
2
2
import 'production.dart' as Production;
3
3
4
- const bool isPro = false ;
4
+ const bool isPro = true ;
5
5
6
6
Object env = isPro ? Production .Config () : Development .Config ();
You can’t perform that action at this time.
0 commit comments