Skip to content

Commit 1589620

Browse files
committed
feat:重构数据层 增加 provider demo
1 parent b6d1dbc commit 1589620

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/components/widget_comp.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,13 @@ class IndexState extends State<Index> {
118118
}
119119

120120
showCode(context) async {
121-
if (Store.value<ConfigModel>(context).isPro) {
121+
/*if (Store.value<ConfigModel>(context).isPro) {
122122
// 线上文档
123123
FluroRouter.router.navigateTo(
124124
context,
125125
'webview?title=${widget.title}&url=${Uri.encodeComponent(Store.value<ConfigModel>(context).env.githubAssetOrigin+widget.mdUrl)}'
126126
);
127-
} else {
127+
} else {*/
128128
// 加载本地
129129
String mdStr = await AssetUtils.readLocaleFile(widget.mdUrl);
130130
Navigator.of(context).push(
@@ -137,7 +137,7 @@ class IndexState extends State<Index> {
137137
);
138138
})
139139
);
140-
}
140+
//}
141141
}
142142

143143
Future getMdFile(url) async {

lib/page/mine/index.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class _IndexState extends State<Index> {
108108
)
109109
],
110110
),
111-
Divider(
111+
/* Divider(
112112
color: Color(AppTheme.lineColor),
113113
),
114114
ListTile(
@@ -119,7 +119,7 @@ class _IndexState extends State<Index> {
119119
title: Text(Store.value<ConfigModel>(context).isPro
120120
? AppLocalizations.$t('common_mine_1.doc_online')
121121
: AppLocalizations.$t('common_mine_1.doc_offline')),
122-
),
122+
),*/
123123
Divider(
124124
color: Color(AppTheme.lineColor),
125125
),

0 commit comments

Comments
 (0)