Skip to content

Commit d1ec0b1

Browse files
committed
fix 一些问题
1 parent 4174128 commit d1ec0b1

File tree

4 files changed

+12
-26
lines changed

4 files changed

+12
-26
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
### 编译运行流程
3636

37-
1、配置好Flutter开发环境(目前Flutter SDK 版本 v0.5.7 的 Tag ),可参阅 [【搭建环境】](https://flutterchina.club)
37+
1、配置好Flutter开发环境(目前Flutter SDK 版本 v0.5.8 的 Tag ),可参阅 [【搭建环境】](https://flutterchina.club)
3838

3939
2、clone代码,执行`Packages get`安装第三方包。(因为某些不可抗力原因,国内可能需要设置代理: [代理环境变量](https://flutterchina.club/setup-windows/))
4040

@@ -89,7 +89,7 @@
8989

9090
### 第三方框架
9191

92-
当前 Flutter SDK 版本 v0.5.7
92+
当前 Flutter SDK 版本 v0.5.8
9393

9494
库 | 功能
9595
-------- | ---

lib/widget/GSYMarkdownWidget.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,15 @@ class GSYMarkdownWidget extends StatelessWidget {
119119
if (tags != null && tags.length > 0) {
120120
for (Match m in tags) {
121121
String imageMatch = m.group(0);
122-
if (imageMatch != null) {
123-
String match = m.group(0).replaceAll("\)", "?raw=true)");
124-
if (!match.contains(".svg")) {
122+
if (imageMatch != null && !imageMatch.contains(".svg")) {
123+
String match = imageMatch.replaceAll("\)", "?raw=true)");
124+
if (!match.contains(".svg") && match.contains("http")) {
125125
///增加点击
126126
String src = match.replaceAll(new RegExp(r'!\[.*\]\('), "").replaceAll(")", "");
127127
String actionMatch = "[$match]($src)";
128128
match = actionMatch;
129+
} else {
130+
match = "";
129131
}
130132
mdDataCode = mdDataCode.replaceAll(m.group(0), match);
131133
}

pubspec.lock

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ packages:
2222
url: "https://pub.flutter-io.cn"
2323
source: hosted
2424
version: "2.0.8"
25-
barback:
26-
dependency: transitive
27-
description:
28-
name: barback
29-
url: "https://pub.flutter-io.cn"
30-
source: hosted
31-
version: "0.15.2+16"
3225
build:
3326
dependency: transitive
3427
description:
@@ -292,19 +285,12 @@ packages:
292285
source: hosted
293286
version: "3.1.3"
294287
intl:
295-
dependency: "direct main"
288+
dependency: transitive
296289
description:
297290
name: intl
298291
url: "https://pub.flutter-io.cn"
299292
source: hosted
300-
version: "0.15.6"
301-
intl_translation:
302-
dependency: "direct main"
303-
description:
304-
name: intl_translation
305-
url: "https://pub.flutter-io.cn"
306-
source: hosted
307-
version: "0.16.7"
293+
version: "0.15.7"
308294
io:
309295
dependency: transitive
310296
description:
@@ -395,7 +381,7 @@ packages:
395381
name: path
396382
url: "https://pub.flutter-io.cn"
397383
source: hosted
398-
version: "1.6.1"
384+
version: "1.6.2"
399385
path_drawing:
400386
dependency: transitive
401387
description:
@@ -568,7 +554,7 @@ packages:
568554
name: vector_math
569555
url: "https://pub.flutter-io.cn"
570556
source: hosted
571-
version: "2.0.6"
557+
version: "2.0.8"
572558
watcher:
573559
dependency: transitive
574560
description:
@@ -591,5 +577,5 @@ packages:
591577
source: hosted
592578
version: "2.1.15"
593579
sdks:
594-
dart: ">=2.0.0-dev.62.0 <=2.0.0-dev.63.0.flutter-4c9689c1d2"
580+
dart: ">=2.0.0-dev.62.0 <=2.0.0-dev.69.5.flutter-eab492385c"
595581
flutter: ">=0.5.1 <2.0.0"

pubspec.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ dependencies:
2929
dio: ^1.0.0
3030
flutter_localizations:
3131
sdk: flutter
32-
intl: ^0.15.6
33-
intl_translation: ^0.16.7
3432
event_bus: ^1.0.1
3533

3634
dev_dependencies:

0 commit comments

Comments
 (0)