refactor:code view

This commit is contained in:
yifeng.yl
2019-01-14 17:15:15 +08:00
parent 5da3b4c3e9
commit 441ed56a00
15 changed files with 125 additions and 144 deletions

View File

@ -20,7 +20,7 @@ class _FullScreenCodeDialogState extends State<FullScreenCodeDialog> {
@override
void didChangeDependencies() {
getExampleCode(widget.filePath, DefaultAssetBundle.of(context))
getExampleCode(context,'${widget.filePath}', DefaultAssetBundle.of(context))
.then<void>((String code) {
if (mounted) {
setState(() {