From d65bd78eda7ab9f3b3b82cf4e91439aebf6ea882 Mon Sep 17 00:00:00 2001 From: Hee Sung Son Date: Fri, 18 Oct 2024 12:17:31 +0900 Subject: [PATCH] Correction of nested folder structure reference error when creating message for rust --- flutter_package/bin/src/message.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flutter_package/bin/src/message.dart b/flutter_package/bin/src/message.dart index 73308c91..ad9e560b 100644 --- a/flutter_package/bin/src/message.dart +++ b/flutter_package/bin/src/message.dart @@ -146,7 +146,7 @@ Future generateMessageCode({ final resourceNames = entry.value; final modRsLines = []; for (final resourceName in resourceNames) { - modRsLines.add('mod $resourceName;'); + modRsLines.add('pub mod $resourceName;'); modRsLines.add('pub use $resourceName::*;'); } for (final otherSubPath in resourcesInFolders.keys) {