Skip to content

Commit 08265f0

Browse files
committed
优化图片点击正式
升级一些包
1 parent 068aa7b commit 08265f0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

RECORD.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ hotload很有优势。
7878

7979
### 动画、本地通讯
8080

81-
### upgrade 和 get的区别,在于lock
81+
### upgrade 和 get的区别,在于lock 在yaml线下,^代表大于等于哦
8282

8383
### redux 下切换主题
8484

lib/widget/GSYMarkdownWidget.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class GSYMarkdownWidget extends StatelessWidget {
123123
String match = m.group(0).replaceAll("\)", "?raw=true)");
124124
if (!match.contains(".svg")) {
125125
///增加点击
126-
String src = match.replaceAll("![](", "").replaceAll(")", "");
126+
String src = match.replaceAll(new RegExp(r'!\[.*\]\('), "").replaceAll(")", "");
127127
String actionMatch = "[$match]($src)";
128128
match = actionMatch;
129129
}

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ dependencies:
1818
flutter_markdown: ^0.1.6
1919
url_launcher: ^3.0.3
2020
share: ^0.5.2
21-
flutter_spinkit: ^2.0.0
21+
flutter_spinkit: ^2.0.1
2222
get_version: ^0.0.5
2323
flutter_webview_plugin: ^0.1.6
2424
sqflite: ^0.11.0+5
2525
pub_semver: ^1.4.2
2626
flutter_statusbar: ^0.0.1
2727
flutter_svg: ^0.5.4
28-
photo_view: ^0.0.3
28+
photo_view: ^0.0.4
2929
flutter_slidable: ^0.4.1
3030

3131
dev_dependencies:

0 commit comments

Comments
 (0)