refactor:文档、文章、组件收藏、新增webView

This commit is contained in:
yifeng.yl
2019-01-14 20:07:22 +08:00
parent cdaaadc3f7
commit c796e82af2
12 changed files with 197 additions and 73 deletions

View File

@ -14,8 +14,6 @@ import 'package:flutter/services.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:flutter/material.dart';
const String _kStartTag = '// START ';
const String _kEndTag = '// END';
Map<String, String> _exampleCode;
String _code;
@ -38,7 +36,6 @@ Future<void> _parseExampleCode(context,String filePath, AssetBundle bundle) asyn
try {
code = await bundle.loadString('lib/widgets/$filePath');
} catch (err) {
print('${Application.github['widgetsURL']} $filePath');
Navigator.of(context).pop();
_launchURL(Application.github['widgetsURL'] + filePath);
}