Browse Source

模板解析搞完。

master
hejl 2 months ago
parent
commit
a9c528c4b6
  1. 2
      win_text_editor/lib/modules/template_parser/controllers/template_parser_controller.dart

2
win_text_editor/lib/modules/template_parser/controllers/template_parser_controller.dart

@ -59,6 +59,7 @@ class TemplateParserController extends BaseContentController {
); );
if (result != null) { if (result != null) {
_filePath = result.files.single.path!; _filePath = result.files.single.path!;
notifyListeners(); // Consumer
await _loadTemplateData(); await _loadTemplateData();
} }
} }
@ -66,6 +67,7 @@ class TemplateParserController extends BaseContentController {
// //
Future<void> setFilePath(String path) async { Future<void> setFilePath(String path) async {
_filePath = path; _filePath = path;
notifyListeners(); // Consumer
await _loadTemplateData(); await _loadTemplateData();
} }

Loading…
Cancel
Save