From d4f635fa24ed3ba9efdcc04243f664e44dbdfa7d Mon Sep 17 00:00:00 2001 From: Chen Peng Date: Sun, 21 Apr 2024 14:50:22 +0800 Subject: [PATCH] =?UTF-8?q?SourceCode:=201.3=20=E5=87=86=E5=A4=87Cell?= =?UTF-8?q?=E5=92=8CPen=E5=90=88=E5=B9=B6=EF=BC=9Arename=20=EF=BC=8C?= =?UTF-8?q?=E9=99=8D=E4=BD=8E=E9=87=8D=E6=9E=84=E9=9A=BE=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notes/flutter_web/lib/notes.g.dart | 109 +++++++++--------- packages/you_note_dart/lib/note.dart | 4 +- .../lib/src/content/example_content.dart | 2 +- .../lib/src/content/markdown_content.dart | 2 +- .../src/{note_core.dart => note_cell.dart} | 2 +- .../you_note_dart/lib/src/note_layout.dart | 4 +- .../src/{note_route.dart => note_page.dart} | 2 +- .../code_block_benchmarks_test.dart | 2 +- .../test/code_analyzer/use_case_basic.dart | 2 +- .../test/note_trace_base_cell_find_test.dart | 4 +- 10 files changed, 65 insertions(+), 68 deletions(-) rename packages/you_note_dart/lib/src/{note_core.dart => note_cell.dart} (99%) rename packages/you_note_dart/lib/src/{note_route.dart => note_page.dart} (99%) diff --git a/notes/flutter_web/lib/notes.g.dart b/notes/flutter_web/lib/notes.g.dart index 83d9e346..61fa8cbe 100644 --- a/notes/flutter_web/lib/notes.g.dart +++ b/notes/flutter_web/lib/notes.g.dart @@ -116,60 +116,57 @@ abstract class BaseNotes { static NoteRoute put(String path, NoteSourceData noteInfo, NoteRouteLazyInitiator noteRouteLazyInitiator) { return rootroot.put(path,noteInfo,noteRouteLazyInitiator); } - final NoteRoute research_research_parameterized_example = put("/research/research_parameterized_example",research_research_parameterized_example_g.noteInfo(), (note) async => note.lazyInit(builder:await research_research_parameterized_example_.loadLibrary().then((value) => research_research_parameterized_example_.build))); - final NoteRoute research_remote_view = put("/research/remote_view",research_remote_view_g.noteInfo(), (note) async => note.lazyInit(builder:await research_remote_view_.loadLibrary().then((value) => research_remote_view_.build))); - final NoteRoute env_info = put("/env_info",env_info_g.noteInfo(), (note) async => note.lazyInit(builder:await env_info_.loadLibrary().then((value) => env_info_.build))); - final NoteRoute layout_old_layout = put("/layout/old/layout",layout_old_layout_g.noteInfo(), (note) async => note.lazyInit(builder:await layout_old_layout_.loadLibrary().then((value) => layout_old_layout_.build))); - final NoteRoute layout_box_layout_constraints = put("/layout/box_layout/constraints",layout_box_layout_constraints_g.noteInfo(), (note) async => note.lazyInit(builder:await layout_box_layout_constraints_.loadLibrary().then((value) => layout_box_layout_constraints_.build))); - final NoteRoute layout_responsive_design = put("/layout/responsive_design",layout_responsive_design_g.noteInfo(), (note) async => note.lazyInit(builder:await layout_responsive_design_.loadLibrary().then((value) => layout_responsive_design_.build))); - final NoteRoute layout = put("/layout",layout_g.noteInfo(), (note) async => note.lazyInit(builder:await layout_.loadLibrary().then((value) => layout_.build))); - final NoteRoute navigation = put("/navigation",navigation_g.noteInfo(), (note) async => note.lazyInit(builder:await navigation_.loadLibrary().then((value) => navigation_.build))); - final NoteRoute state_vanilla_state = put("/state/1.vanilla_state",state_vanilla_state_g.noteInfo(), (note) async => note.lazyInit(builder:await state_vanilla_state_.loadLibrary().then((value) => state_vanilla_state_.build))); - final NoteRoute state = put("/state",state_g.noteInfo(), (note) async => note.lazyInit(builder:await state_.loadLibrary().then((value) => state_.build))); - final NoteRoute state_StatefulBuilder = put("/state/StatefulBuilder",state_StatefulBuilder_g.noteInfo(), (note) async => note.lazyInit(builder:await state_StatefulBuilder_.loadLibrary().then((value) => state_StatefulBuilder_.build))); - final NoteRoute media_assets_file_file_desktop = put("/media&assets&file/file_desktop",media_assets_file_file_desktop_g.noteInfo(), (note) async => note.lazyInit(builder:await media_assets_file_file_desktop_.loadLibrary().then((value) => media_assets_file_file_desktop_.build))); - final NoteRoute media_assets_file_file_web = put("/media&assets&file/file_web",media_assets_file_file_web_g.noteInfo(), (note) async => note.lazyInit(builder:await media_assets_file_file_web_.loadLibrary().then((value) => media_assets_file_file_web_.build))); - final NoteRoute media_assets_file_assets = put("/media&assets&file/assets",media_assets_file_assets_g.noteInfo(), (note) async => note.lazyInit(builder:await media_assets_file_assets_.loadLibrary().then((value) => media_assets_file_assets_.build))); - final NoteRoute style_theming_material3 = put("/style&theming/material3",style_theming_material3_g.noteInfo(), (note) async => note.lazyInit(builder:await style_theming_material3_.loadLibrary().then( (value) { - NotePageBuilder b=style_theming_material3_.build; - return b; - }))); - final NoteRoute pure_dart_dart3 = put("/pure_dart/dart3",pure_dart_dart3_g.noteInfo(), (note) async => note.lazyInit(builder:await pure_dart_dart3_.loadLibrary().then((value) => pure_dart_dart3_.build))); - final NoteRoute pure_dart_async = put("/pure_dart/async",pure_dart_async_g.noteInfo(), (note) async => note.lazyInit(builder:await pure_dart_async_.loadLibrary().then((value) => pure_dart_async_.build))); - final NoteRoute pure_dart_safe_interface = put("/pure_dart/safe_interface",pure_dart_safe_interface_g.noteInfo(), (note) async => note.lazyInit(builder:await pure_dart_safe_interface_.loadLibrary().then((value) => pure_dart_safe_interface_.build))); - final NoteRoute pure_dart_execption = put("/pure_dart/execption",pure_dart_execption_g.noteInfo(), (note) async => note.lazyInit(builder:await pure_dart_execption_.loadLibrary().then((value) => pure_dart_execption_.build))); - final NoteRoute pure_dart_serialization_json = put("/pure_dart/serialization_json",pure_dart_serialization_json_g.noteInfo(), (note) async => note.lazyInit(builder:await pure_dart_serialization_json_.loadLibrary().then((value) => pure_dart_serialization_json_.build))); - final NoteRoute pure_dart_analyzer = put("/pure_dart/analyzer",pure_dart_analyzer_g.noteInfo(), (note) async => note.lazyInit(builder:await pure_dart_analyzer_.loadLibrary().then((value) => pure_dart_analyzer_.build))); - final NoteRoute dev_host_mirror = put("/dev/host_mirror",dev_host_mirror_g.noteInfo(), (note) async => note.lazyInit(builder:await dev_host_mirror_.loadLibrary().then((value) => dev_host_mirror_.build))); - final NoteRoute dev_macos_config = put("/dev/macos_config",dev_macos_config_g.noteInfo(), (note) async => note.lazyInit(builder:await dev_macos_config_.loadLibrary().then((value) => dev_macos_config_.build))); - final NoteRoute dev_devtool_vmservice = put("/dev/devtool/vmservice",dev_devtool_vmservice_g.noteInfo(), (note) async => note.lazyInit(builder:await dev_devtool_vmservice_.loadLibrary().then((value) => dev_devtool_vmservice_.build))); - final NoteRoute dev_devtool = put("/dev/devtool",dev_devtool_g.noteInfo(), (note) async => note.lazyInit(builder:await dev_devtool_.loadLibrary().then((value) => dev_devtool_.build))); - final NoteRoute dev_debug = put("/dev/debug",dev_debug_g.noteInfo(), (note) async => note.lazyInit(builder:await dev_debug_.loadLibrary().then((value) => dev_debug_.build))); - final NoteRoute root = put("/",root_g.noteInfo(), (note) async => note.lazyInit(builder:await root_.loadLibrary().then((value) => root_.build))); - final NoteRoute i18n = put("/i18n",i18n_g.noteInfo(), (note) async => note.lazyInit(builder:await i18n_.loadLibrary().then((value) => i18n_.build))); - final NoteRoute thinking_in_ui_readable_html_vs_dart = put("/thinking_in_ui/readable_html_vs_dart",thinking_in_ui_readable_html_vs_dart_g.noteInfo(), (note) async => note.lazyInit(builder:await thinking_in_ui_readable_html_vs_dart_.loadLibrary().then((value) => thinking_in_ui_readable_html_vs_dart_.build))); - final NoteRoute x_note_inside_how_note_work = put("/x.note_inside/how_note_work",x_note_inside_how_note_work_g.noteInfo(), (note) async => note.lazyInit(builder:await x_note_inside_how_note_work_.loadLibrary().then((value) => x_note_inside_how_note_work_.build))); - final NoteRoute x_note_inside_mockup_content = put("/x.note_inside/mockup_content",x_note_inside_mockup_content_g.noteInfo(), (note) async => note.lazyInit(builder:await x_note_inside_mockup_content_.loadLibrary().then((value) => x_note_inside_mockup_content_.build))); - final NoteRoute x_note_inside_welcome = put("/x.note_inside/1.welcome",x_note_inside_welcome_g.noteInfo(), (note) async => note.lazyInit(builder:await x_note_inside_welcome_.loadLibrary().then((value) => x_note_inside_welcome_.build))); - final NoteRoute x_note_inside_note_test_self_nobody = put("/x.note_inside/note_test_self/nobody",x_note_inside_note_test_self_nobody_g.noteInfo(), (note) async => note.lazyInit(builder:await x_note_inside_note_test_self_nobody_.loadLibrary().then((value) => x_note_inside_note_test_self_nobody_.build))); - final NoteRoute x_note_inside_note_test_self = put("/x.note_inside/note_test_self",x_note_inside_note_test_self_g.noteInfo(), (note) async => note.lazyInit(builder:await x_note_inside_note_test_self_.loadLibrary().then((value) => x_note_inside_note_test_self_.build))); - final NoteRoute widgets_specific_widgets_input = put("/widgets/specific_widgets/input",widgets_specific_widgets_input_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_specific_widgets_input_.loadLibrary().then((value) => widgets_specific_widgets_input_.build))); - final NoteRoute widgets_specific_widgets_webview = put("/widgets/specific_widgets/webview",widgets_specific_widgets_webview_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_specific_widgets_webview_.loadLibrary().then((value) => widgets_specific_widgets_webview_.build))); - final NoteRoute widgets_specific_widgets_slider = put("/widgets/specific_widgets/slider",widgets_specific_widgets_slider_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_specific_widgets_slider_.loadLibrary().then((value) => widgets_specific_widgets_slider_.build))); - final NoteRoute widgets_specific_widgets_selectable = put("/widgets/specific_widgets/selectable",widgets_specific_widgets_selectable_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_specific_widgets_selectable_.loadLibrary().then((value) => widgets_specific_widgets_selectable_.build))); - final NoteRoute widgets_specific_widgets_button_ButtonStyleButton = put("/widgets/specific_widgets/button/ButtonStyleButton",widgets_specific_widgets_button_ButtonStyleButton_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_specific_widgets_button_ButtonStyleButton_.loadLibrary().then((value) => widgets_specific_widgets_button_ButtonStyleButton_.build))); - final NoteRoute widgets_specific_widgets_button_FloatingActionButton = put("/widgets/specific_widgets/button/FloatingActionButton",widgets_specific_widgets_button_FloatingActionButton_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_specific_widgets_button_FloatingActionButton_.loadLibrary().then((value) => widgets_specific_widgets_button_FloatingActionButton_.build))); - final NoteRoute widgets_specific_widgets_button_IconButton = put("/widgets/specific_widgets/button/IconButton",widgets_specific_widgets_button_IconButton_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_specific_widgets_button_IconButton_.loadLibrary().then((value) => widgets_specific_widgets_button_IconButton_.build))); - final NoteRoute widgets_specific_widgets_button_overview = put("/widgets/specific_widgets/button/overview",widgets_specific_widgets_button_overview_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_specific_widgets_button_overview_.loadLibrary().then((value) => widgets_specific_widgets_button_overview_.build))); - final NoteRoute widgets_specific_widgets_text_RichText = put("/widgets/specific_widgets/text/RichText",widgets_specific_widgets_text_RichText_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_specific_widgets_text_RichText_.loadLibrary().then((value) => widgets_specific_widgets_text_RichText_.build))); - final NoteRoute widgets_specific_widgets_text_Text = put("/widgets/specific_widgets/text/Text",widgets_specific_widgets_text_Text_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_specific_widgets_text_Text_.loadLibrary().then((value) => widgets_specific_widgets_text_Text_.build))); - final NoteRoute widgets_specific_widgets_icon = put("/widgets/specific_widgets/icon",widgets_specific_widgets_icon_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_specific_widgets_icon_.loadLibrary().then((value) => widgets_specific_widgets_icon_.build))); - final NoteRoute widgets_container_widgets_menu = put("/widgets/container_widgets/menu",widgets_container_widgets_menu_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_container_widgets_menu_.loadLibrary().then((value) => widgets_container_widgets_menu_.build))); - final NoteRoute widgets_container_widgets_scrollable_Dismissible = put("/widgets/container_widgets/scrollable/Dismissible",widgets_container_widgets_scrollable_Dismissible_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_container_widgets_scrollable_Dismissible_.loadLibrary().then((value) => widgets_container_widgets_scrollable_Dismissible_.build))); - final NoteRoute widgets_container_widgets_bar = put("/widgets/container_widgets/bar",widgets_container_widgets_bar_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_container_widgets_bar_.loadLibrary().then((value) => widgets_container_widgets_bar_.build))); - final NoteRoute Improve_app_overview = put("/Improve_app/1.overview",Improve_app_overview_g.noteInfo(), (note) async => note.lazyInit(builder:await Improve_app_overview_.loadLibrary().then((value) => Improve_app_overview_.build))); - final NoteRoute Improve_app_web_optimization = put("/Improve_app/web_optimization",Improve_app_web_optimization_g.noteInfo(), (note) async => note.lazyInit(builder:await Improve_app_web_optimization_.loadLibrary().then((value) => Improve_app_web_optimization_.build))); - final NoteRoute Improve_app_RepaintBoundary = put("/Improve_app/RepaintBoundary",Improve_app_RepaintBoundary_g.noteInfo(), (note) async => note.lazyInit(builder:await Improve_app_RepaintBoundary_.loadLibrary().then((value) => Improve_app_RepaintBoundary_.build))); - final NoteRoute Improve_app = put("/Improve_app",Improve_app_g.noteInfo(), (note) async => note.lazyInit(builder:await Improve_app_.loadLibrary().then((value) => Improve_app_.build))); - final NoteRoute Improve_app_event_listener_lifeycle = put("/Improve_app/event&listener&lifeycle",Improve_app_event_listener_lifeycle_g.noteInfo(), (note) async => note.lazyInit(builder:await Improve_app_event_listener_lifeycle_.loadLibrary().then((value) => Improve_app_event_listener_lifeycle_.build))); + final NoteRoute research_research_parameterized_example = put("/research/research_parameterized_example",research_research_parameterized_example_g.noteInfo(), (note) async => note.lazyInit(builder:await research_research_parameterized_example_.loadLibrary().then((value) => research_research_parameterized_example_.build))); + final NoteRoute research_remote_view = put("/research/remote_view",research_remote_view_g.noteInfo(), (note) async => note.lazyInit(builder:await research_remote_view_.loadLibrary().then((value) => research_remote_view_.build))); + final NoteRoute env_info = put("/env_info",env_info_g.noteInfo(), (note) async => note.lazyInit(builder:await env_info_.loadLibrary().then((value) => env_info_.build))); + final NoteRoute layout_old_layout = put("/layout/old/layout",layout_old_layout_g.noteInfo(), (note) async => note.lazyInit(builder:await layout_old_layout_.loadLibrary().then((value) => layout_old_layout_.build))); + final NoteRoute layout_box_layout_constraints = put("/layout/box_layout/constraints",layout_box_layout_constraints_g.noteInfo(), (note) async => note.lazyInit(builder:await layout_box_layout_constraints_.loadLibrary().then((value) => layout_box_layout_constraints_.build))); + final NoteRoute layout_responsive_design = put("/layout/responsive_design",layout_responsive_design_g.noteInfo(), (note) async => note.lazyInit(builder:await layout_responsive_design_.loadLibrary().then((value) => layout_responsive_design_.build))); + final NoteRoute layout = put("/layout",layout_g.noteInfo(), (note) async => note.lazyInit(builder:await layout_.loadLibrary().then((value) => layout_.build))); + final NoteRoute navigation = put("/navigation",navigation_g.noteInfo(), (note) async => note.lazyInit(builder:await navigation_.loadLibrary().then((value) => navigation_.build))); + final NoteRoute state_vanilla_state = put("/state/1.vanilla_state",state_vanilla_state_g.noteInfo(), (note) async => note.lazyInit(builder:await state_vanilla_state_.loadLibrary().then((value) => state_vanilla_state_.build))); + final NoteRoute state = put("/state",state_g.noteInfo(), (note) async => note.lazyInit(builder:await state_.loadLibrary().then((value) => state_.build))); + final NoteRoute state_StatefulBuilder = put("/state/StatefulBuilder",state_StatefulBuilder_g.noteInfo(), (note) async => note.lazyInit(builder:await state_StatefulBuilder_.loadLibrary().then((value) => state_StatefulBuilder_.build))); + final NoteRoute media_assets_file_file_desktop = put("/media&assets&file/file_desktop",media_assets_file_file_desktop_g.noteInfo(), (note) async => note.lazyInit(builder:await media_assets_file_file_desktop_.loadLibrary().then((value) => media_assets_file_file_desktop_.build))); + final NoteRoute media_assets_file_file_web = put("/media&assets&file/file_web",media_assets_file_file_web_g.noteInfo(), (note) async => note.lazyInit(builder:await media_assets_file_file_web_.loadLibrary().then((value) => media_assets_file_file_web_.build))); + final NoteRoute media_assets_file_assets = put("/media&assets&file/assets",media_assets_file_assets_g.noteInfo(), (note) async => note.lazyInit(builder:await media_assets_file_assets_.loadLibrary().then((value) => media_assets_file_assets_.build))); + final NoteRoute style_theming_material3 = put("/style&theming/material3",style_theming_material3_g.noteInfo(), (note) async => note.lazyInit(builder:await style_theming_material3_.loadLibrary().then((value) => style_theming_material3_.build))); + final NoteRoute pure_dart_dart3 = put("/pure_dart/dart3",pure_dart_dart3_g.noteInfo(), (note) async => note.lazyInit(builder:await pure_dart_dart3_.loadLibrary().then((value) => pure_dart_dart3_.build))); + final NoteRoute pure_dart_async = put("/pure_dart/async",pure_dart_async_g.noteInfo(), (note) async => note.lazyInit(builder:await pure_dart_async_.loadLibrary().then((value) => pure_dart_async_.build))); + final NoteRoute pure_dart_safe_interface = put("/pure_dart/safe_interface",pure_dart_safe_interface_g.noteInfo(), (note) async => note.lazyInit(builder:await pure_dart_safe_interface_.loadLibrary().then((value) => pure_dart_safe_interface_.build))); + final NoteRoute pure_dart_execption = put("/pure_dart/execption",pure_dart_execption_g.noteInfo(), (note) async => note.lazyInit(builder:await pure_dart_execption_.loadLibrary().then((value) => pure_dart_execption_.build))); + final NoteRoute pure_dart_serialization_json = put("/pure_dart/serialization_json",pure_dart_serialization_json_g.noteInfo(), (note) async => note.lazyInit(builder:await pure_dart_serialization_json_.loadLibrary().then((value) => pure_dart_serialization_json_.build))); + final NoteRoute pure_dart_analyzer = put("/pure_dart/analyzer",pure_dart_analyzer_g.noteInfo(), (note) async => note.lazyInit(builder:await pure_dart_analyzer_.loadLibrary().then((value) => pure_dart_analyzer_.build))); + final NoteRoute dev_host_mirror = put("/dev/host_mirror",dev_host_mirror_g.noteInfo(), (note) async => note.lazyInit(builder:await dev_host_mirror_.loadLibrary().then((value) => dev_host_mirror_.build))); + final NoteRoute dev_macos_config = put("/dev/macos_config",dev_macos_config_g.noteInfo(), (note) async => note.lazyInit(builder:await dev_macos_config_.loadLibrary().then((value) => dev_macos_config_.build))); + final NoteRoute dev_devtool_vmservice = put("/dev/devtool/vmservice",dev_devtool_vmservice_g.noteInfo(), (note) async => note.lazyInit(builder:await dev_devtool_vmservice_.loadLibrary().then((value) => dev_devtool_vmservice_.build))); + final NoteRoute dev_devtool = put("/dev/devtool",dev_devtool_g.noteInfo(), (note) async => note.lazyInit(builder:await dev_devtool_.loadLibrary().then((value) => dev_devtool_.build))); + final NoteRoute dev_debug = put("/dev/debug",dev_debug_g.noteInfo(), (note) async => note.lazyInit(builder:await dev_debug_.loadLibrary().then((value) => dev_debug_.build))); + final NoteRoute root = put("/",root_g.noteInfo(), (note) async => note.lazyInit(builder:await root_.loadLibrary().then((value) => root_.build))); + final NoteRoute i18n = put("/i18n",i18n_g.noteInfo(), (note) async => note.lazyInit(builder:await i18n_.loadLibrary().then((value) => i18n_.build))); + final NoteRoute thinking_in_ui_readable_html_vs_dart = put("/thinking_in_ui/readable_html_vs_dart",thinking_in_ui_readable_html_vs_dart_g.noteInfo(), (note) async => note.lazyInit(builder:await thinking_in_ui_readable_html_vs_dart_.loadLibrary().then((value) => thinking_in_ui_readable_html_vs_dart_.build))); + final NoteRoute x_note_inside_how_note_work = put("/x.note_inside/how_note_work",x_note_inside_how_note_work_g.noteInfo(), (note) async => note.lazyInit(builder:await x_note_inside_how_note_work_.loadLibrary().then((value) => x_note_inside_how_note_work_.build))); + final NoteRoute x_note_inside_mockup_content = put("/x.note_inside/mockup_content",x_note_inside_mockup_content_g.noteInfo(), (note) async => note.lazyInit(builder:await x_note_inside_mockup_content_.loadLibrary().then((value) => x_note_inside_mockup_content_.build))); + final NoteRoute x_note_inside_welcome = put("/x.note_inside/1.welcome",x_note_inside_welcome_g.noteInfo(), (note) async => note.lazyInit(builder:await x_note_inside_welcome_.loadLibrary().then((value) => x_note_inside_welcome_.build))); + final NoteRoute x_note_inside_note_test_self_nobody = put("/x.note_inside/note_test_self/nobody",x_note_inside_note_test_self_nobody_g.noteInfo(), (note) async => note.lazyInit(builder:await x_note_inside_note_test_self_nobody_.loadLibrary().then((value) => x_note_inside_note_test_self_nobody_.build))); + final NoteRoute x_note_inside_note_test_self = put("/x.note_inside/note_test_self",x_note_inside_note_test_self_g.noteInfo(), (note) async => note.lazyInit(builder:await x_note_inside_note_test_self_.loadLibrary().then((value) => x_note_inside_note_test_self_.build))); + final NoteRoute widgets_specific_widgets_input = put("/widgets/specific_widgets/input",widgets_specific_widgets_input_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_specific_widgets_input_.loadLibrary().then((value) => widgets_specific_widgets_input_.build))); + final NoteRoute widgets_specific_widgets_webview = put("/widgets/specific_widgets/webview",widgets_specific_widgets_webview_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_specific_widgets_webview_.loadLibrary().then((value) => widgets_specific_widgets_webview_.build))); + final NoteRoute widgets_specific_widgets_slider = put("/widgets/specific_widgets/slider",widgets_specific_widgets_slider_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_specific_widgets_slider_.loadLibrary().then((value) => widgets_specific_widgets_slider_.build))); + final NoteRoute widgets_specific_widgets_selectable = put("/widgets/specific_widgets/selectable",widgets_specific_widgets_selectable_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_specific_widgets_selectable_.loadLibrary().then((value) => widgets_specific_widgets_selectable_.build))); + final NoteRoute widgets_specific_widgets_button_ButtonStyleButton = put("/widgets/specific_widgets/button/ButtonStyleButton",widgets_specific_widgets_button_ButtonStyleButton_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_specific_widgets_button_ButtonStyleButton_.loadLibrary().then((value) => widgets_specific_widgets_button_ButtonStyleButton_.build))); + final NoteRoute widgets_specific_widgets_button_FloatingActionButton = put("/widgets/specific_widgets/button/FloatingActionButton",widgets_specific_widgets_button_FloatingActionButton_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_specific_widgets_button_FloatingActionButton_.loadLibrary().then((value) => widgets_specific_widgets_button_FloatingActionButton_.build))); + final NoteRoute widgets_specific_widgets_button_IconButton = put("/widgets/specific_widgets/button/IconButton",widgets_specific_widgets_button_IconButton_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_specific_widgets_button_IconButton_.loadLibrary().then((value) => widgets_specific_widgets_button_IconButton_.build))); + final NoteRoute widgets_specific_widgets_button_overview = put("/widgets/specific_widgets/button/overview",widgets_specific_widgets_button_overview_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_specific_widgets_button_overview_.loadLibrary().then((value) => widgets_specific_widgets_button_overview_.build))); + final NoteRoute widgets_specific_widgets_text_RichText = put("/widgets/specific_widgets/text/RichText",widgets_specific_widgets_text_RichText_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_specific_widgets_text_RichText_.loadLibrary().then((value) => widgets_specific_widgets_text_RichText_.build))); + final NoteRoute widgets_specific_widgets_text_Text = put("/widgets/specific_widgets/text/Text",widgets_specific_widgets_text_Text_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_specific_widgets_text_Text_.loadLibrary().then((value) => widgets_specific_widgets_text_Text_.build))); + final NoteRoute widgets_specific_widgets_icon = put("/widgets/specific_widgets/icon",widgets_specific_widgets_icon_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_specific_widgets_icon_.loadLibrary().then((value) => widgets_specific_widgets_icon_.build))); + final NoteRoute widgets_container_widgets_menu = put("/widgets/container_widgets/menu",widgets_container_widgets_menu_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_container_widgets_menu_.loadLibrary().then((value) => widgets_container_widgets_menu_.build))); + final NoteRoute widgets_container_widgets_scrollable_Dismissible = put("/widgets/container_widgets/scrollable/Dismissible",widgets_container_widgets_scrollable_Dismissible_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_container_widgets_scrollable_Dismissible_.loadLibrary().then((value) => widgets_container_widgets_scrollable_Dismissible_.build))); + final NoteRoute widgets_container_widgets_bar = put("/widgets/container_widgets/bar",widgets_container_widgets_bar_g.noteInfo(), (note) async => note.lazyInit(builder:await widgets_container_widgets_bar_.loadLibrary().then((value) => widgets_container_widgets_bar_.build))); + final NoteRoute Improve_app_overview = put("/Improve_app/1.overview",Improve_app_overview_g.noteInfo(), (note) async => note.lazyInit(builder:await Improve_app_overview_.loadLibrary().then((value) => Improve_app_overview_.build))); + final NoteRoute Improve_app_web_optimization = put("/Improve_app/web_optimization",Improve_app_web_optimization_g.noteInfo(), (note) async => note.lazyInit(builder:await Improve_app_web_optimization_.loadLibrary().then((value) => Improve_app_web_optimization_.build))); + final NoteRoute Improve_app_RepaintBoundary = put("/Improve_app/RepaintBoundary",Improve_app_RepaintBoundary_g.noteInfo(), (note) async => note.lazyInit(builder:await Improve_app_RepaintBoundary_.loadLibrary().then((value) => Improve_app_RepaintBoundary_.build))); + final NoteRoute Improve_app = put("/Improve_app",Improve_app_g.noteInfo(), (note) async => note.lazyInit(builder:await Improve_app_.loadLibrary().then((value) => Improve_app_.build))); + final NoteRoute Improve_app_event_listener_lifeycle = put("/Improve_app/event&listener&lifeycle",Improve_app_event_listener_lifeycle_g.noteInfo(), (note) async => note.lazyInit(builder:await Improve_app_event_listener_lifeycle_.loadLibrary().then((value) => Improve_app_event_listener_lifeycle_.build))); } diff --git a/packages/you_note_dart/lib/note.dart b/packages/you_note_dart/lib/note.dart index e62df78d..187aa81a 100644 --- a/packages/you_note_dart/lib/note.dart +++ b/packages/you_note_dart/lib/note.dart @@ -1,6 +1,6 @@ library note; -export 'src/note_core.dart' show CellPrint; -export 'src/note_route.dart' show NoteSourceData, NoteRouteLazyInitiator, NoteSystem, NoteRoute, NotePage, NotePageBuilder; +export 'src/note_cell.dart' show CellPrint; +export 'src/note_page.dart' show NoteSourceData, NoteRouteLazyInitiator, NoteSystem, NoteRoute, NotePage, NotePageBuilder; export 'src/content/mockup.dart' show MockupWindow; export 'src/content/markdown_content.dart' show MD; diff --git a/packages/you_note_dart/lib/src/content/example_content.dart b/packages/you_note_dart/lib/src/content/example_content.dart index e5bba4e0..a178b8ed 100644 --- a/packages/you_note_dart/lib/src/content/example_content.dart +++ b/packages/you_note_dart/lib/src/content/example_content.dart @@ -3,7 +3,7 @@ import 'package:flutter_highlight/themes/vs2015.dart'; import 'package:you_note_dart/src/content/params.dart'; import 'package:you_note_dart/src/flutter_highlight.dart'; import 'package:you_note_dart/core.dart'; -import 'package:you_note_dart/src/note_core.dart'; +import 'package:you_note_dart/src/note_cell.dart'; import 'package:you_note_dart/ui.dart'; import 'package:code_builder/code_builder.dart' as code; diff --git a/packages/you_note_dart/lib/src/content/markdown_content.dart b/packages/you_note_dart/lib/src/content/markdown_content.dart index 0fe9916a..1ef5f43e 100644 --- a/packages/you_note_dart/lib/src/content/markdown_content.dart +++ b/packages/you_note_dart/lib/src/content/markdown_content.dart @@ -4,7 +4,7 @@ import 'package:flutter_markdown/flutter_markdown.dart'; import 'package:markdown/markdown.dart' as md; import 'package:meta/meta.dart'; import 'package:you_note_dart/src/flutter_highlight.dart'; -import 'package:you_note_dart/src/note_core.dart'; +import 'package:you_note_dart/src/note_cell.dart'; class MD extends StatelessWidget { final String text; diff --git a/packages/you_note_dart/lib/src/note_core.dart b/packages/you_note_dart/lib/src/note_cell.dart similarity index 99% rename from packages/you_note_dart/lib/src/note_core.dart rename to packages/you_note_dart/lib/src/note_cell.dart index 3e78586f..afb28853 100644 --- a/packages/you_note_dart/lib/src/note_core.dart +++ b/packages/you_note_dart/lib/src/note_cell.dart @@ -7,7 +7,7 @@ import 'package:meta/meta.dart'; import 'package:flutter/material.dart'; import 'package:you_note_dart/src/content/object_content.dart'; import 'package:you_note_dart/src/content/markdown_content.dart'; -import 'package:you_note_dart/src/note_route.dart'; +import 'package:you_note_dart/src/note_page.dart'; import 'package:source_map_stack_trace/source_map_stack_trace.dart' as source_map_stack_trace; import 'package:stack_trace/stack_trace.dart'; import 'package:path/path.dart' as path; diff --git a/packages/you_note_dart/lib/src/note_layout.dart b/packages/you_note_dart/lib/src/note_layout.dart index e3b0365d..4c397699 100644 --- a/packages/you_note_dart/lib/src/note_layout.dart +++ b/packages/you_note_dart/lib/src/note_layout.dart @@ -3,8 +3,8 @@ import 'package:flutter/material.dart'; import 'package:flutter_highlight/themes/atelier-forest-light.dart'; import 'package:you_note_dart/src/flutter_highlight.dart'; import 'package:you_note_dart/src/navigator_v2.dart'; -import 'package:you_note_dart/src/note_core.dart'; -import 'package:you_note_dart/src/note_route.dart'; +import 'package:you_note_dart/src/note_cell.dart'; +import 'package:you_note_dart/src/note_page.dart'; import 'package:you_note_dart/src/utils_ui.dart'; /// 分割块,在cell间分割留白 diff --git a/packages/you_note_dart/lib/src/note_route.dart b/packages/you_note_dart/lib/src/note_page.dart similarity index 99% rename from packages/you_note_dart/lib/src/note_route.dart rename to packages/you_note_dart/lib/src/note_page.dart index c15c1e11..1b4a3120 100644 --- a/packages/you_note_dart/lib/src/note_route.dart +++ b/packages/you_note_dart/lib/src/note_page.dart @@ -3,7 +3,7 @@ import 'package:flutter/widgets.dart'; import 'package:meta/meta.dart'; import 'package:you_note_dart/note_conf.dart'; import 'package:you_note_dart/src/conventions.dart'; -import 'package:you_note_dart/src/note_core.dart'; +import 'package:you_note_dart/src/note_cell.dart'; import 'package:you_note_dart/src/utils_core.dart'; diff --git a/packages/you_note_dart/test/benchmarks/code_block_benchmarks_test.dart b/packages/you_note_dart/test/benchmarks/code_block_benchmarks_test.dart index c9b9cd68..9145d0f2 100644 --- a/packages/you_note_dart/test/benchmarks/code_block_benchmarks_test.dart +++ b/packages/you_note_dart/test/benchmarks/code_block_benchmarks_test.dart @@ -9,7 +9,7 @@ void main() { group("code analyzer benchmarks", () { ///解析600行的文件 100次,1.7秒,足够做实时解析了 test("parse", () async { - File file = File.fromUri(Uri.file("lib/src/note_core.dart")); + File file = File.fromUri(Uri.file("lib/src/note_cell.dart")); for (var _ in List.generate(100, (i) => i)) { var parseResult = parseString(content: file.readAsStringSync(), featureSet: FeatureSet.latestLanguageVersion()); var unit = parseResult.unit; diff --git a/packages/you_note_dart/test/code_analyzer/use_case_basic.dart b/packages/you_note_dart/test/code_analyzer/use_case_basic.dart index 3504aebf..01a14e0a 100644 --- a/packages/you_note_dart/test/code_analyzer/use_case_basic.dart +++ b/packages/you_note_dart/test/code_analyzer/use_case_basic.dart @@ -1,5 +1,5 @@ import 'package:flutter/widgets.dart'; -import 'package:you_note_dart/src/note_core.dart'; +import 'package:you_note_dart/src/note_cell.dart'; var x = "x"; diff --git a/packages/you_note_dart/test/note_trace_base_cell_find_test.dart b/packages/you_note_dart/test/note_trace_base_cell_find_test.dart index fc26f5a9..cef46159 100644 --- a/packages/you_note_dart/test/note_trace_base_cell_find_test.dart +++ b/packages/you_note_dart/test/note_trace_base_cell_find_test.dart @@ -1,7 +1,7 @@ import 'package:checks/checks.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:stack_trace/stack_trace.dart'; -import 'package:you_note_dart/src/note_core.dart'; +import 'package:you_note_dart/src/note_cell.dart'; final _emptyJsonMap = '{"version":3,"sources":[],"mappings":""}'; @@ -74,7 +74,7 @@ Exception: my throw "org-dartlang-sdk:///dart-sdk/lib/async/stream.dart", "org-dartlang-sdk:///dart-sdk/lib/async/stream_controller.dart", "../../../lib/notes/pure_dart/execption/note.dart", - "../../../../../packages/you_note_dart/lib/src/note_core.dart", + "../../../../../packages/you_note_dart/lib/src/note_cell.dart", "org-dartlang-sdk:///dart-sdk/lib/_internal/js_runtime/lib/js_array.dart", "org-dartlang-sdk:///dart-sdk/lib/internal/iterable.dart", "../../../../../../../../.pub-cache/hosted/pub.flutter-io.cn/http-1.2.1/lib/http.dart",