diff --git a/notes/flutter_web/lib/routes.g.dart b/notes/flutter_web/lib/routes.g.dart index c85f73a2..64e5fccd 100644 --- a/notes/flutter_web/lib/routes.g.dart +++ b/notes/flutter_web/lib/routes.g.dart @@ -9,70 +9,70 @@ import 'package:you_flutter/router.dart'; // ########################################### -// ## pages +// ## routes // ########################################### -import 'package:flutter_web/pages/notes/dev/debug/page.dart' as notes_dev_debug_; -import 'package:flutter_web/pages/notes/dev/devtool/page.dart' as notes_dev_devtool_; -import 'package:flutter_web/pages/notes/dev/devtool/vmservice/page.dart' as notes_dev_devtool_vmservice_; -import 'package:flutter_web/pages/notes/dev/host_mirror/page.dart' as notes_dev_host_mirror_; -import 'package:flutter_web/pages/notes/dev/macos_config/page.dart' as notes_dev_macos_config_; -import 'package:flutter_web/pages/notes/env_info/page.dart' as notes_env_info_; -import 'package:flutter_web/pages/notes/i18n/page.dart' as notes_i18n_; -import 'package:flutter_web/pages/notes/Improve_app/1.overview/page.dart' as notes_Improve_app_overview_; -import 'package:flutter_web/pages/notes/Improve_app/event&listener&lifeycle/page.dart' as notes_Improve_app_event_listener_lifeycle_; -import 'package:flutter_web/pages/notes/Improve_app/page.dart' as notes_Improve_app_; -import 'package:flutter_web/pages/notes/Improve_app/RepaintBoundary/page.dart' as notes_Improve_app_RepaintBoundary_; -import 'package:flutter_web/pages/notes/Improve_app/web_optimization/page.dart' as notes_Improve_app_web_optimization_; -import 'package:flutter_web/pages/notes/layout/box_layout/constraints/page.dart' as notes_layout_box_layout_constraints_; -import 'package:flutter_web/pages/notes/layout/old/layout/page.dart' as notes_layout_old_layout_; -import 'package:flutter_web/pages/notes/layout/page.dart' as notes_layout_; -import 'package:flutter_web/pages/notes/layout/responsive_design/page.dart' as notes_layout_responsive_design_; -import 'package:flutter_web/pages/notes/media&assets&file/assets/page.dart' as notes_media_assets_file_assets_; -import 'package:flutter_web/pages/notes/media&assets&file/file_desktop/page.dart' as notes_media_assets_file_file_desktop_; -import 'package:flutter_web/pages/notes/media&assets&file/file_web/page.dart' as notes_media_assets_file_file_web_; -import 'package:flutter_web/pages/notes/navigation/page.dart' as notes_navigation_; -import 'package:flutter_web/pages/notes/page.dart' as notes_; -import 'package:flutter_web/pages/notes/pure_dart/analyzer/page.dart' as notes_pure_dart_analyzer_; -import 'package:flutter_web/pages/notes/pure_dart/async/page.dart' as notes_pure_dart_async_; -import 'package:flutter_web/pages/notes/pure_dart/dart3/page.dart' as notes_pure_dart_dart3_; -import 'package:flutter_web/pages/notes/pure_dart/execption/page.dart' as notes_pure_dart_execption_; -import 'package:flutter_web/pages/notes/pure_dart/safe_interface/page.dart' as notes_pure_dart_safe_interface_; -import 'package:flutter_web/pages/notes/pure_dart/serialization_json/page.dart' as notes_pure_dart_serialization_json_; -import 'package:flutter_web/pages/notes/research/remote_view/page.dart' as notes_research_remote_view_; -import 'package:flutter_web/pages/notes/research/research_parameterized_example/page.dart' as notes_research_research_parameterized_example_; -import 'package:flutter_web/pages/notes/state/1.vanilla_state/page.dart' as notes_state_vanilla_state_; -import 'package:flutter_web/pages/notes/state/page.dart' as notes_state_; -import 'package:flutter_web/pages/notes/state/StatefulBuilder/page.dart' as notes_state_StatefulBuilder_; -import 'package:flutter_web/pages/notes/style&theming/material3/page.dart' as notes_style_theming_material3_; -import 'package:flutter_web/pages/notes/thinking_in_ui/readable_html_vs_dart/page.dart' as notes_thinking_in_ui_readable_html_vs_dart_; -import 'package:flutter_web/pages/notes/widgets/container_widgets/bar/page.dart' as notes_widgets_container_widgets_bar_; -import 'package:flutter_web/pages/notes/widgets/container_widgets/menu/page.dart' as notes_widgets_container_widgets_menu_; -import 'package:flutter_web/pages/notes/widgets/container_widgets/scrollable/Dismissible/page.dart' as notes_widgets_container_widgets_scrollable_Dismissible_; -import 'package:flutter_web/pages/notes/widgets/specific_widgets/button/ButtonStyleButton/page.dart' as notes_widgets_specific_widgets_button_ButtonStyleButton_; -import 'package:flutter_web/pages/notes/widgets/specific_widgets/button/FloatingActionButton/page.dart' as notes_widgets_specific_widgets_button_FloatingActionButton_; -import 'package:flutter_web/pages/notes/widgets/specific_widgets/button/IconButton/page.dart' as notes_widgets_specific_widgets_button_IconButton_; -import 'package:flutter_web/pages/notes/widgets/specific_widgets/button/overview/page.dart' as notes_widgets_specific_widgets_button_overview_; -import 'package:flutter_web/pages/notes/widgets/specific_widgets/icon/page.dart' as notes_widgets_specific_widgets_icon_; -import 'package:flutter_web/pages/notes/widgets/specific_widgets/input/page.dart' as notes_widgets_specific_widgets_input_; -import 'package:flutter_web/pages/notes/widgets/specific_widgets/selectable/page.dart' as notes_widgets_specific_widgets_selectable_; -import 'package:flutter_web/pages/notes/widgets/specific_widgets/slider/page.dart' as notes_widgets_specific_widgets_slider_; -import 'package:flutter_web/pages/notes/widgets/specific_widgets/text/RichText/page.dart' as notes_widgets_specific_widgets_text_RichText_; -import 'package:flutter_web/pages/notes/widgets/specific_widgets/text/Text/page.dart' as notes_widgets_specific_widgets_text_Text_; -import 'package:flutter_web/pages/notes/widgets/specific_widgets/webview/page.dart' as notes_widgets_specific_widgets_webview_; -import 'package:flutter_web/pages/notes/x.note_inside/1.welcome/page.dart' as notes_x_note_inside_welcome_; -import 'package:flutter_web/pages/notes/x.note_inside/how_note_work/page.dart' as notes_x_note_inside_how_note_work_; -import 'package:flutter_web/pages/notes/x.note_inside/mockup_content/page.dart' as notes_x_note_inside_mockup_content_; -import 'package:flutter_web/pages/notes/x.note_inside/note_test_self/nobody/page.dart' as notes_x_note_inside_note_test_self_nobody_; -import 'package:flutter_web/pages/notes/x.note_inside/note_test_self/page.dart' as notes_x_note_inside_note_test_self_; +import 'package:flutter_web/routes/notes/dev/debug/page.dart' as notes_dev_debug_; +import 'package:flutter_web/routes/notes/dev/devtool/page.dart' as notes_dev_devtool_; +import 'package:flutter_web/routes/notes/dev/devtool/vmservice/page.dart' as notes_dev_devtool_vmservice_; +import 'package:flutter_web/routes/notes/dev/host_mirror/page.dart' as notes_dev_host_mirror_; +import 'package:flutter_web/routes/notes/dev/macos_config/page.dart' as notes_dev_macos_config_; +import 'package:flutter_web/routes/notes/env_info/page.dart' as notes_env_info_; +import 'package:flutter_web/routes/notes/i18n/page.dart' as notes_i18n_; +import 'package:flutter_web/routes/notes/Improve_app/1.overview/page.dart' as notes_Improve_app_overview_; +import 'package:flutter_web/routes/notes/Improve_app/event&listener&lifeycle/page.dart' as notes_Improve_app_event_listener_lifeycle_; +import 'package:flutter_web/routes/notes/Improve_app/page.dart' as notes_Improve_app_; +import 'package:flutter_web/routes/notes/Improve_app/RepaintBoundary/page.dart' as notes_Improve_app_RepaintBoundary_; +import 'package:flutter_web/routes/notes/Improve_app/web_optimization/page.dart' as notes_Improve_app_web_optimization_; +import 'package:flutter_web/routes/notes/layout/box_layout/constraints/page.dart' as notes_layout_box_layout_constraints_; +import 'package:flutter_web/routes/notes/layout/old/layout/page.dart' as notes_layout_old_layout_; +import 'package:flutter_web/routes/notes/layout/page.dart' as notes_layout_; +import 'package:flutter_web/routes/notes/layout/responsive_design/page.dart' as notes_layout_responsive_design_; +import 'package:flutter_web/routes/notes/media&assets&file/assets/page.dart' as notes_media_assets_file_assets_; +import 'package:flutter_web/routes/notes/media&assets&file/file_desktop/page.dart' as notes_media_assets_file_file_desktop_; +import 'package:flutter_web/routes/notes/media&assets&file/file_web/page.dart' as notes_media_assets_file_file_web_; +import 'package:flutter_web/routes/notes/navigation/page.dart' as notes_navigation_; +import 'package:flutter_web/routes/notes/page.dart' as notes_; +import 'package:flutter_web/routes/notes/pure_dart/analyzer/page.dart' as notes_pure_dart_analyzer_; +import 'package:flutter_web/routes/notes/pure_dart/async/page.dart' as notes_pure_dart_async_; +import 'package:flutter_web/routes/notes/pure_dart/dart3/page.dart' as notes_pure_dart_dart3_; +import 'package:flutter_web/routes/notes/pure_dart/execption/page.dart' as notes_pure_dart_execption_; +import 'package:flutter_web/routes/notes/pure_dart/safe_interface/page.dart' as notes_pure_dart_safe_interface_; +import 'package:flutter_web/routes/notes/pure_dart/serialization_json/page.dart' as notes_pure_dart_serialization_json_; +import 'package:flutter_web/routes/notes/research/remote_view/page.dart' as notes_research_remote_view_; +import 'package:flutter_web/routes/notes/research/research_parameterized_example/page.dart' as notes_research_research_parameterized_example_; +import 'package:flutter_web/routes/notes/state/1.vanilla_state/page.dart' as notes_state_vanilla_state_; +import 'package:flutter_web/routes/notes/state/page.dart' as notes_state_; +import 'package:flutter_web/routes/notes/state/StatefulBuilder/page.dart' as notes_state_StatefulBuilder_; +import 'package:flutter_web/routes/notes/style&theming/material3/page.dart' as notes_style_theming_material3_; +import 'package:flutter_web/routes/notes/thinking_in_ui/readable_html_vs_dart/page.dart' as notes_thinking_in_ui_readable_html_vs_dart_; +import 'package:flutter_web/routes/notes/widgets/container_widgets/bar/page.dart' as notes_widgets_container_widgets_bar_; +import 'package:flutter_web/routes/notes/widgets/container_widgets/menu/page.dart' as notes_widgets_container_widgets_menu_; +import 'package:flutter_web/routes/notes/widgets/container_widgets/scrollable/Dismissible/page.dart' as notes_widgets_container_widgets_scrollable_Dismissible_; +import 'package:flutter_web/routes/notes/widgets/specific_widgets/button/ButtonStyleButton/page.dart' as notes_widgets_specific_widgets_button_ButtonStyleButton_; +import 'package:flutter_web/routes/notes/widgets/specific_widgets/button/FloatingActionButton/page.dart' as notes_widgets_specific_widgets_button_FloatingActionButton_; +import 'package:flutter_web/routes/notes/widgets/specific_widgets/button/IconButton/page.dart' as notes_widgets_specific_widgets_button_IconButton_; +import 'package:flutter_web/routes/notes/widgets/specific_widgets/button/overview/page.dart' as notes_widgets_specific_widgets_button_overview_; +import 'package:flutter_web/routes/notes/widgets/specific_widgets/icon/page.dart' as notes_widgets_specific_widgets_icon_; +import 'package:flutter_web/routes/notes/widgets/specific_widgets/input/page.dart' as notes_widgets_specific_widgets_input_; +import 'package:flutter_web/routes/notes/widgets/specific_widgets/selectable/page.dart' as notes_widgets_specific_widgets_selectable_; +import 'package:flutter_web/routes/notes/widgets/specific_widgets/slider/page.dart' as notes_widgets_specific_widgets_slider_; +import 'package:flutter_web/routes/notes/widgets/specific_widgets/text/RichText/page.dart' as notes_widgets_specific_widgets_text_RichText_; +import 'package:flutter_web/routes/notes/widgets/specific_widgets/text/Text/page.dart' as notes_widgets_specific_widgets_text_Text_; +import 'package:flutter_web/routes/notes/widgets/specific_widgets/webview/page.dart' as notes_widgets_specific_widgets_webview_; +import 'package:flutter_web/routes/notes/x.note_inside/1.welcome/page.dart' as notes_x_note_inside_welcome_; +import 'package:flutter_web/routes/notes/x.note_inside/how_note_work/page.dart' as notes_x_note_inside_how_note_work_; +import 'package:flutter_web/routes/notes/x.note_inside/mockup_content/page.dart' as notes_x_note_inside_mockup_content_; +import 'package:flutter_web/routes/notes/x.note_inside/note_test_self/nobody/page.dart' as notes_x_note_inside_note_test_self_nobody_; +import 'package:flutter_web/routes/notes/x.note_inside/note_test_self/page.dart' as notes_x_note_inside_note_test_self_; // ########################################### // ## layouts // ########################################### -import 'package:flutter_web/pages/notes/layout.dart' as notes__; +import 'package:flutter_web/routes/notes/layout.dart' as notes__; -var root=To("pages" , children:[ +var root=To("routes" , children:[ To("notes" ,builder:notes__.layout(notes_.build), children:[ To("research" , children:[ To("research_parameterized_example" ,builder:notes__.layout(notes_research_research_parameterized_example_.build)) , @@ -182,58 +182,58 @@ var root=To("pages" , children:[ final Routes routes=Routes(); class Routes{ - final notes = root.find("/notes")! ; - final notes_research_research_parameterized_example = root.find("/notes/research/research_parameterized_example")! ; - final notes_research_remote_view = root.find("/notes/research/remote_view")! ; - final notes_env_info = root.find("/notes/env_info")! ; - final notes_layout = root.find("/notes/layout")! ; - final notes_layout_old_layout = root.find("/notes/layout/old/layout")! ; - final notes_layout_box_layout_constraints = root.find("/notes/layout/box_layout/constraints")! ; - final notes_layout_responsive_design = root.find("/notes/layout/responsive_design")! ; - final notes_navigation = root.find("/notes/navigation")! ; - final notes_state = root.find("/notes/state")! ; - final notes_state_vanilla_state = root.find("/notes/state/1.vanilla_state")! ; - final notes_state_StatefulBuilder = root.find("/notes/state/StatefulBuilder")! ; - final notes_media_assets_file_file_desktop = root.find("/notes/media&assets&file/file_desktop")! ; - final notes_media_assets_file_file_web = root.find("/notes/media&assets&file/file_web")! ; - final notes_media_assets_file_assets = root.find("/notes/media&assets&file/assets")! ; - final notes_style_theming_material3 = root.find("/notes/style&theming/material3")! ; - final notes_pure_dart_dart3 = root.find("/notes/pure_dart/dart3")! ; - final notes_pure_dart_async = root.find("/notes/pure_dart/async")! ; - final notes_pure_dart_safe_interface = root.find("/notes/pure_dart/safe_interface")! ; - final notes_pure_dart_execption = root.find("/notes/pure_dart/execption")! ; - final notes_pure_dart_serialization_json = root.find("/notes/pure_dart/serialization_json")! ; - final notes_pure_dart_analyzer = root.find("/notes/pure_dart/analyzer")! ; - final notes_dev_host_mirror = root.find("/notes/dev/host_mirror")! ; - final notes_dev_macos_config = root.find("/notes/dev/macos_config")! ; - final notes_dev_devtool = root.find("/notes/dev/devtool")! ; - final notes_dev_devtool_vmservice = root.find("/notes/dev/devtool/vmservice")! ; - final notes_dev_debug = root.find("/notes/dev/debug")! ; - final notes_i18n = root.find("/notes/i18n")! ; - final notes_thinking_in_ui_readable_html_vs_dart = root.find("/notes/thinking_in_ui/readable_html_vs_dart")! ; - final notes_x_note_inside_how_note_work = root.find("/notes/x.note_inside/how_note_work")! ; - final notes_x_note_inside_mockup_content = root.find("/notes/x.note_inside/mockup_content")! ; - final notes_x_note_inside_welcome = root.find("/notes/x.note_inside/1.welcome")! ; - final notes_x_note_inside_note_test_self = root.find("/notes/x.note_inside/note_test_self")! ; - final notes_x_note_inside_note_test_self_nobody = root.find("/notes/x.note_inside/note_test_self/nobody")! ; - final notes_widgets_specific_widgets_input = root.find("/notes/widgets/specific_widgets/input")! ; - final notes_widgets_specific_widgets_webview = root.find("/notes/widgets/specific_widgets/webview")! ; - final notes_widgets_specific_widgets_slider = root.find("/notes/widgets/specific_widgets/slider")! ; - final notes_widgets_specific_widgets_selectable = root.find("/notes/widgets/specific_widgets/selectable")! ; - final notes_widgets_specific_widgets_button_ButtonStyleButton = root.find("/notes/widgets/specific_widgets/button/ButtonStyleButton")! ; - final notes_widgets_specific_widgets_button_FloatingActionButton = root.find("/notes/widgets/specific_widgets/button/FloatingActionButton")! ; - final notes_widgets_specific_widgets_button_IconButton = root.find("/notes/widgets/specific_widgets/button/IconButton")! ; - final notes_widgets_specific_widgets_button_overview = root.find("/notes/widgets/specific_widgets/button/overview")! ; - final notes_widgets_specific_widgets_text_RichText = root.find("/notes/widgets/specific_widgets/text/RichText")! ; - final notes_widgets_specific_widgets_text_Text = root.find("/notes/widgets/specific_widgets/text/Text")! ; - final notes_widgets_specific_widgets_icon = root.find("/notes/widgets/specific_widgets/icon")! ; - final notes_widgets_container_widgets_menu = root.find("/notes/widgets/container_widgets/menu")! ; - final notes_widgets_container_widgets_scrollable_Dismissible = root.find("/notes/widgets/container_widgets/scrollable/Dismissible")! ; - final notes_widgets_container_widgets_bar = root.find("/notes/widgets/container_widgets/bar")! ; - final notes_Improve_app = root.find("/notes/Improve_app")! ; - final notes_Improve_app_overview = root.find("/notes/Improve_app/1.overview")! ; - final notes_Improve_app_web_optimization = root.find("/notes/Improve_app/web_optimization")! ; - final notes_Improve_app_RepaintBoundary = root.find("/notes/Improve_app/RepaintBoundary")! ; - final notes_Improve_app_event_listener_lifeycle = root.find("/notes/Improve_app/event&listener&lifeycle")! ; + final notes = root.find("/notes")! ; + final notes_research_research_parameterized_example = root.find("/notes/research/research_parameterized_example")! ; + final notes_research_remote_view = root.find("/notes/research/remote_view")! ; + final notes_env_info = root.find("/notes/env_info")! ; + final notes_layout = root.find("/notes/layout")! ; + final notes_layout_old_layout = root.find("/notes/layout/old/layout")! ; + final notes_layout_box_layout_constraints = root.find("/notes/layout/box_layout/constraints")! ; + final notes_layout_responsive_design = root.find("/notes/layout/responsive_design")! ; + final notes_navigation = root.find("/notes/navigation")! ; + final notes_state = root.find("/notes/state")! ; + final notes_state_vanilla_state = root.find("/notes/state/1.vanilla_state")! ; + final notes_state_StatefulBuilder = root.find("/notes/state/StatefulBuilder")! ; + final notes_media_assets_file_file_desktop = root.find("/notes/media&assets&file/file_desktop")! ; + final notes_media_assets_file_file_web = root.find("/notes/media&assets&file/file_web")! ; + final notes_media_assets_file_assets = root.find("/notes/media&assets&file/assets")! ; + final notes_style_theming_material3 = root.find("/notes/style&theming/material3")! ; + final notes_pure_dart_dart3 = root.find("/notes/pure_dart/dart3")! ; + final notes_pure_dart_async = root.find("/notes/pure_dart/async")! ; + final notes_pure_dart_safe_interface = root.find("/notes/pure_dart/safe_interface")! ; + final notes_pure_dart_execption = root.find("/notes/pure_dart/execption")! ; + final notes_pure_dart_serialization_json = root.find("/notes/pure_dart/serialization_json")! ; + final notes_pure_dart_analyzer = root.find("/notes/pure_dart/analyzer")! ; + final notes_dev_host_mirror = root.find("/notes/dev/host_mirror")! ; + final notes_dev_macos_config = root.find("/notes/dev/macos_config")! ; + final notes_dev_devtool = root.find("/notes/dev/devtool")! ; + final notes_dev_devtool_vmservice = root.find("/notes/dev/devtool/vmservice")! ; + final notes_dev_debug = root.find("/notes/dev/debug")! ; + final notes_i18n = root.find("/notes/i18n")! ; + final notes_thinking_in_ui_readable_html_vs_dart = root.find("/notes/thinking_in_ui/readable_html_vs_dart")! ; + final notes_x_note_inside_how_note_work = root.find("/notes/x.note_inside/how_note_work")! ; + final notes_x_note_inside_mockup_content = root.find("/notes/x.note_inside/mockup_content")! ; + final notes_x_note_inside_welcome = root.find("/notes/x.note_inside/1.welcome")! ; + final notes_x_note_inside_note_test_self = root.find("/notes/x.note_inside/note_test_self")! ; + final notes_x_note_inside_note_test_self_nobody = root.find("/notes/x.note_inside/note_test_self/nobody")! ; + final notes_widgets_specific_widgets_input = root.find("/notes/widgets/specific_widgets/input")! ; + final notes_widgets_specific_widgets_webview = root.find("/notes/widgets/specific_widgets/webview")! ; + final notes_widgets_specific_widgets_slider = root.find("/notes/widgets/specific_widgets/slider")! ; + final notes_widgets_specific_widgets_selectable = root.find("/notes/widgets/specific_widgets/selectable")! ; + final notes_widgets_specific_widgets_button_ButtonStyleButton = root.find("/notes/widgets/specific_widgets/button/ButtonStyleButton")! ; + final notes_widgets_specific_widgets_button_FloatingActionButton = root.find("/notes/widgets/specific_widgets/button/FloatingActionButton")! ; + final notes_widgets_specific_widgets_button_IconButton = root.find("/notes/widgets/specific_widgets/button/IconButton")! ; + final notes_widgets_specific_widgets_button_overview = root.find("/notes/widgets/specific_widgets/button/overview")! ; + final notes_widgets_specific_widgets_text_RichText = root.find("/notes/widgets/specific_widgets/text/RichText")! ; + final notes_widgets_specific_widgets_text_Text = root.find("/notes/widgets/specific_widgets/text/Text")! ; + final notes_widgets_specific_widgets_icon = root.find("/notes/widgets/specific_widgets/icon")! ; + final notes_widgets_container_widgets_menu = root.find("/notes/widgets/container_widgets/menu")! ; + final notes_widgets_container_widgets_scrollable_Dismissible = root.find("/notes/widgets/container_widgets/scrollable/Dismissible")! ; + final notes_widgets_container_widgets_bar = root.find("/notes/widgets/container_widgets/bar")! ; + final notes_Improve_app = root.find("/notes/Improve_app")! ; + final notes_Improve_app_overview = root.find("/notes/Improve_app/1.overview")! ; + final notes_Improve_app_web_optimization = root.find("/notes/Improve_app/web_optimization")! ; + final notes_Improve_app_RepaintBoundary = root.find("/notes/Improve_app/RepaintBoundary")! ; + final notes_Improve_app_event_listener_lifeycle = root.find("/notes/Improve_app/event&listener&lifeycle")! ; } diff --git a/notes/flutter_web/lib/pages/notes/Improve_app/1.overview/page.dart b/notes/flutter_web/lib/routes/notes/Improve_app/1.overview/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/Improve_app/1.overview/page.dart rename to notes/flutter_web/lib/routes/notes/Improve_app/1.overview/page.dart diff --git a/notes/flutter_web/lib/pages/notes/Improve_app/RepaintBoundary/page.dart b/notes/flutter_web/lib/routes/notes/Improve_app/RepaintBoundary/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/Improve_app/RepaintBoundary/page.dart rename to notes/flutter_web/lib/routes/notes/Improve_app/RepaintBoundary/page.dart diff --git a/notes/flutter_web/lib/pages/notes/Improve_app/error_handle/main_error1_FlutterError.onError.dart b/notes/flutter_web/lib/routes/notes/Improve_app/error_handle/main_error1_FlutterError.onError.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/Improve_app/error_handle/main_error1_FlutterError.onError.dart rename to notes/flutter_web/lib/routes/notes/Improve_app/error_handle/main_error1_FlutterError.onError.dart diff --git a/notes/flutter_web/lib/pages/notes/Improve_app/event&listener&lifeycle/page.dart b/notes/flutter_web/lib/routes/notes/Improve_app/event&listener&lifeycle/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/Improve_app/event&listener&lifeycle/page.dart rename to notes/flutter_web/lib/routes/notes/Improve_app/event&listener&lifeycle/page.dart diff --git a/notes/flutter_web/lib/pages/notes/Improve_app/page.dart b/notes/flutter_web/lib/routes/notes/Improve_app/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/Improve_app/page.dart rename to notes/flutter_web/lib/routes/notes/Improve_app/page.dart diff --git a/notes/flutter_web/lib/pages/notes/Improve_app/web_optimization/1.deferrred_lib_main.dart b/notes/flutter_web/lib/routes/notes/Improve_app/web_optimization/1.deferrred_lib_main.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/Improve_app/web_optimization/1.deferrred_lib_main.dart rename to notes/flutter_web/lib/routes/notes/Improve_app/web_optimization/1.deferrred_lib_main.dart diff --git a/notes/flutter_web/lib/pages/notes/Improve_app/web_optimization/page.dart b/notes/flutter_web/lib/routes/notes/Improve_app/web_optimization/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/Improve_app/web_optimization/page.dart rename to notes/flutter_web/lib/routes/notes/Improve_app/web_optimization/page.dart diff --git a/notes/flutter_web/lib/pages/notes/dev/debug/page.dart b/notes/flutter_web/lib/routes/notes/dev/debug/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/dev/debug/page.dart rename to notes/flutter_web/lib/routes/notes/dev/debug/page.dart diff --git a/notes/flutter_web/lib/pages/notes/dev/devtool/page.dart b/notes/flutter_web/lib/routes/notes/dev/devtool/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/dev/devtool/page.dart rename to notes/flutter_web/lib/routes/notes/dev/devtool/page.dart diff --git a/notes/flutter_web/lib/pages/notes/dev/devtool/vmservice/page.dart b/notes/flutter_web/lib/routes/notes/dev/devtool/vmservice/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/dev/devtool/vmservice/page.dart rename to notes/flutter_web/lib/routes/notes/dev/devtool/vmservice/page.dart diff --git a/notes/flutter_web/lib/pages/notes/dev/host_mirror/page.dart b/notes/flutter_web/lib/routes/notes/dev/host_mirror/page.dart similarity index 97% rename from notes/flutter_web/lib/pages/notes/dev/host_mirror/page.dart rename to notes/flutter_web/lib/routes/notes/dev/host_mirror/page.dart index dd6a150b..5fe524d5 100644 --- a/notes/flutter_web/lib/pages/notes/dev/host_mirror/page.dart +++ b/notes/flutter_web/lib/routes/notes/dev/host_mirror/page.dart @@ -37,7 +37,7 @@ export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn flutter run --device-id chrome --web-renderer canvaskit --release --dart-define=FLUTTER_WEB_CANVASKIT_URL=https://cdn.jsdelivr.net/npm/canvaskit-wasm@0.37.1/bin/ # build 也有效 -flutter build web -v --release --web-renderer canvaskit --dart-define=FLUTTER_WEB_CANVASKIT_URL=https://cdn.jsdelivr.net/npm/canvaskit-wasm@0.37.1/bin/ -t lib/pages/navigator/navigator_v2/3.1.navigator_v2_args_screen.dart +flutter build web -v --release --web-renderer canvaskit --dart-define=FLUTTER_WEB_CANVASKIT_URL=https://cdn.jsdelivr.net/npm/canvaskit-wasm@0.37.1/bin/ -t lib/routes/navigator/navigator_v2/3.1.navigator_v2_args_screen.dart ``` diff --git a/notes/flutter_web/lib/pages/notes/dev/macos_config/page.dart b/notes/flutter_web/lib/routes/notes/dev/macos_config/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/dev/macos_config/page.dart rename to notes/flutter_web/lib/routes/notes/dev/macos_config/page.dart diff --git a/notes/flutter_web/lib/pages/notes/env_info/page.dart b/notes/flutter_web/lib/routes/notes/env_info/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/env_info/page.dart rename to notes/flutter_web/lib/routes/notes/env_info/page.dart diff --git a/notes/flutter_web/lib/pages/notes/i18n/page.dart b/notes/flutter_web/lib/routes/notes/i18n/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/i18n/page.dart rename to notes/flutter_web/lib/routes/notes/i18n/page.dart diff --git a/notes/flutter_web/lib/pages/notes/layout.dart b/notes/flutter_web/lib/routes/notes/layout.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/layout.dart rename to notes/flutter_web/lib/routes/notes/layout.dart diff --git a/notes/flutter_web/lib/pages/notes/layout/1.welcome/1.get_size.dart b/notes/flutter_web/lib/routes/notes/layout/1.welcome/1.get_size.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/layout/1.welcome/1.get_size.dart rename to notes/flutter_web/lib/routes/notes/layout/1.welcome/1.get_size.dart diff --git a/notes/flutter_web/lib/pages/notes/layout/1.welcome/2.get_size_stateful.dart b/notes/flutter_web/lib/routes/notes/layout/1.welcome/2.get_size_stateful.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/layout/1.welcome/2.get_size_stateful.dart rename to notes/flutter_web/lib/routes/notes/layout/1.welcome/2.get_size_stateful.dart diff --git a/notes/flutter_web/lib/pages/notes/layout/1.welcome/note.md b/notes/flutter_web/lib/routes/notes/layout/1.welcome/note.md similarity index 100% rename from notes/flutter_web/lib/pages/notes/layout/1.welcome/note.md rename to notes/flutter_web/lib/routes/notes/layout/1.welcome/note.md diff --git a/notes/flutter_web/lib/pages/notes/layout/box_layout/constraints/box_1_basic.dart b/notes/flutter_web/lib/routes/notes/layout/box_layout/constraints/box_1_basic.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/layout/box_layout/constraints/box_1_basic.dart rename to notes/flutter_web/lib/routes/notes/layout/box_layout/constraints/box_1_basic.dart diff --git a/notes/flutter_web/lib/pages/notes/layout/box_layout/constraints/box_error1_infinity.dart b/notes/flutter_web/lib/routes/notes/layout/box_layout/constraints/box_error1_infinity.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/layout/box_layout/constraints/box_error1_infinity.dart rename to notes/flutter_web/lib/routes/notes/layout/box_layout/constraints/box_error1_infinity.dart diff --git a/notes/flutter_web/lib/pages/notes/layout/box_layout/constraints/main.dart b/notes/flutter_web/lib/routes/notes/layout/box_layout/constraints/main.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/layout/box_layout/constraints/main.dart rename to notes/flutter_web/lib/routes/notes/layout/box_layout/constraints/main.dart diff --git a/notes/flutter_web/lib/pages/notes/layout/box_layout/constraints/page.dart b/notes/flutter_web/lib/routes/notes/layout/box_layout/constraints/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/layout/box_layout/constraints/page.dart rename to notes/flutter_web/lib/routes/notes/layout/box_layout/constraints/page.dart diff --git a/notes/flutter_web/lib/pages/notes/layout/old/layout/page.dart b/notes/flutter_web/lib/routes/notes/layout/old/layout/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/layout/old/layout/page.dart rename to notes/flutter_web/lib/routes/notes/layout/old/layout/page.dart diff --git a/notes/flutter_web/lib/pages/notes/layout/old/layout/screen.dart b/notes/flutter_web/lib/routes/notes/layout/old/layout/screen.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/layout/old/layout/screen.dart rename to notes/flutter_web/lib/routes/notes/layout/old/layout/screen.dart diff --git a/notes/flutter_web/lib/pages/notes/layout/old/layout/screen2.dart b/notes/flutter_web/lib/routes/notes/layout/old/layout/screen2.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/layout/old/layout/screen2.dart rename to notes/flutter_web/lib/routes/notes/layout/old/layout/screen2.dart diff --git a/notes/flutter_web/lib/pages/notes/layout/page.dart b/notes/flutter_web/lib/routes/notes/layout/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/layout/page.dart rename to notes/flutter_web/lib/routes/notes/layout/page.dart diff --git a/notes/flutter_web/lib/pages/notes/layout/responsive_design/page.dart b/notes/flutter_web/lib/routes/notes/layout/responsive_design/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/layout/responsive_design/page.dart rename to notes/flutter_web/lib/routes/notes/layout/responsive_design/page.dart diff --git a/notes/flutter_web/lib/pages/notes/media&assets&file/assets/page.dart b/notes/flutter_web/lib/routes/notes/media&assets&file/assets/page.dart similarity index 81% rename from notes/flutter_web/lib/pages/notes/media&assets&file/assets/page.dart rename to notes/flutter_web/lib/routes/notes/media&assets&file/assets/page.dart index 95f7bb5f..e91e84ed 100644 --- a/notes/flutter_web/lib/pages/notes/media&assets&file/assets/page.dart +++ b/notes/flutter_web/lib/routes/notes/media&assets&file/assets/page.dart @@ -8,6 +8,6 @@ void build(BuildContext context, Cell print) async { # asset ''')); - var jsonAsset = await rootBundle.loadString('lib/pages/note.dart'); + var jsonAsset = await rootBundle.loadString('lib/routes/note.dart'); print(jsonAsset); } diff --git a/notes/flutter_web/lib/pages/notes/media&assets&file/file_desktop/page.dart b/notes/flutter_web/lib/routes/notes/media&assets&file/file_desktop/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/media&assets&file/file_desktop/page.dart rename to notes/flutter_web/lib/routes/notes/media&assets&file/file_desktop/page.dart diff --git a/notes/flutter_web/lib/pages/notes/media&assets&file/file_web/page.dart b/notes/flutter_web/lib/routes/notes/media&assets&file/file_web/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/media&assets&file/file_web/page.dart rename to notes/flutter_web/lib/routes/notes/media&assets&file/file_web/page.dart diff --git a/notes/flutter_web/lib/pages/notes/navigation/navigator_v1/ref.dart b/notes/flutter_web/lib/routes/notes/navigation/navigator_v1/ref.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/navigation/navigator_v1/ref.dart rename to notes/flutter_web/lib/routes/notes/navigation/navigator_v1/ref.dart diff --git a/notes/flutter_web/lib/pages/notes/navigation/navigator_v2/1.1.navigator_hello_v1.dart b/notes/flutter_web/lib/routes/notes/navigation/navigator_v2/1.1.navigator_hello_v1.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/navigation/navigator_v2/1.1.navigator_hello_v1.dart rename to notes/flutter_web/lib/routes/notes/navigation/navigator_v2/1.1.navigator_hello_v1.dart diff --git a/notes/flutter_web/lib/pages/notes/navigation/navigator_v2/1.2.navigator_hello_v2.dart b/notes/flutter_web/lib/routes/notes/navigation/navigator_v2/1.2.navigator_hello_v2.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/navigation/navigator_v2/1.2.navigator_hello_v2.dart rename to notes/flutter_web/lib/routes/notes/navigation/navigator_v2/1.2.navigator_hello_v2.dart diff --git a/notes/flutter_web/lib/pages/notes/navigation/navigator_v2/2.navigator_v2_result.dart b/notes/flutter_web/lib/routes/notes/navigation/navigator_v2/2.navigator_v2_result.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/navigation/navigator_v2/2.navigator_v2_result.dart rename to notes/flutter_web/lib/routes/notes/navigation/navigator_v2/2.navigator_v2_result.dart diff --git a/notes/flutter_web/lib/pages/notes/navigation/navigator_v2/3.navigator_v2_only_pages_last_version.dart b/notes/flutter_web/lib/routes/notes/navigation/navigator_v2/3.navigator_v2_only_pages_last_version.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/navigation/navigator_v2/3.navigator_v2_only_pages_last_version.dart rename to notes/flutter_web/lib/routes/notes/navigation/navigator_v2/3.navigator_v2_only_pages_last_version.dart diff --git a/notes/flutter_web/lib/pages/notes/navigation/navigator_v2/4.2.navigator_v2_last_version.dart b/notes/flutter_web/lib/routes/notes/navigation/navigator_v2/4.2.navigator_v2_last_version.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/navigation/navigator_v2/4.2.navigator_v2_last_version.dart rename to notes/flutter_web/lib/routes/notes/navigation/navigator_v2/4.2.navigator_v2_last_version.dart diff --git a/notes/flutter_web/lib/pages/notes/navigation/page.dart b/notes/flutter_web/lib/routes/notes/navigation/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/navigation/page.dart rename to notes/flutter_web/lib/routes/notes/navigation/page.dart diff --git a/notes/flutter_web/lib/pages/notes/page.dart b/notes/flutter_web/lib/routes/notes/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/page.dart rename to notes/flutter_web/lib/routes/notes/page.dart diff --git a/notes/flutter_web/lib/pages/notes/page.json b/notes/flutter_web/lib/routes/notes/page.json similarity index 100% rename from notes/flutter_web/lib/pages/notes/page.json rename to notes/flutter_web/lib/routes/notes/page.json diff --git a/notes/flutter_web/lib/pages/notes/pure_dart/analyzer/analyzer_ast.dart b/notes/flutter_web/lib/routes/notes/pure_dart/analyzer/analyzer_ast.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/pure_dart/analyzer/analyzer_ast.dart rename to notes/flutter_web/lib/routes/notes/pure_dart/analyzer/analyzer_ast.dart diff --git a/notes/flutter_web/lib/pages/notes/pure_dart/analyzer/analyzer_element.dart b/notes/flutter_web/lib/routes/notes/pure_dart/analyzer/analyzer_element.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/pure_dart/analyzer/analyzer_element.dart rename to notes/flutter_web/lib/routes/notes/pure_dart/analyzer/analyzer_element.dart diff --git a/notes/flutter_web/lib/pages/notes/pure_dart/analyzer/page.dart b/notes/flutter_web/lib/routes/notes/pure_dart/analyzer/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/pure_dart/analyzer/page.dart rename to notes/flutter_web/lib/routes/notes/pure_dart/analyzer/page.dart diff --git a/notes/flutter_web/lib/pages/notes/pure_dart/async/page.dart b/notes/flutter_web/lib/routes/notes/pure_dart/async/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/pure_dart/async/page.dart rename to notes/flutter_web/lib/routes/notes/pure_dart/async/page.dart diff --git a/notes/flutter_web/lib/pages/notes/pure_dart/dart3/page.dart b/notes/flutter_web/lib/routes/notes/pure_dart/dart3/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/pure_dart/dart3/page.dart rename to notes/flutter_web/lib/routes/notes/pure_dart/dart3/page.dart diff --git a/notes/flutter_web/lib/pages/notes/pure_dart/dart3/simple_interface_class.dart b/notes/flutter_web/lib/routes/notes/pure_dart/dart3/simple_interface_class.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/pure_dart/dart3/simple_interface_class.dart rename to notes/flutter_web/lib/routes/notes/pure_dart/dart3/simple_interface_class.dart diff --git a/notes/flutter_web/lib/pages/notes/pure_dart/execption/page.dart b/notes/flutter_web/lib/routes/notes/pure_dart/execption/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/pure_dart/execption/page.dart rename to notes/flutter_web/lib/routes/notes/pure_dart/execption/page.dart diff --git a/notes/flutter_web/lib/pages/notes/pure_dart/safe_interface/page.dart b/notes/flutter_web/lib/routes/notes/pure_dart/safe_interface/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/pure_dart/safe_interface/page.dart rename to notes/flutter_web/lib/routes/notes/pure_dart/safe_interface/page.dart diff --git a/notes/flutter_web/lib/pages/notes/pure_dart/serialization_json/page.dart b/notes/flutter_web/lib/routes/notes/pure_dart/serialization_json/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/pure_dart/serialization_json/page.dart rename to notes/flutter_web/lib/routes/notes/pure_dart/serialization_json/page.dart diff --git a/notes/flutter_web/lib/pages/notes/research/remote_view/page.dart b/notes/flutter_web/lib/routes/notes/research/remote_view/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/research/remote_view/page.dart rename to notes/flutter_web/lib/routes/notes/research/remote_view/page.dart diff --git a/notes/flutter_web/lib/pages/notes/research/research_note_bash/note.bash b/notes/flutter_web/lib/routes/notes/research/research_note_bash/note.bash similarity index 100% rename from notes/flutter_web/lib/pages/notes/research/research_note_bash/note.bash rename to notes/flutter_web/lib/routes/notes/research/research_note_bash/note.bash diff --git a/notes/flutter_web/lib/pages/notes/research/research_note_bash/page.json b/notes/flutter_web/lib/routes/notes/research/research_note_bash/page.json similarity index 100% rename from notes/flutter_web/lib/pages/notes/research/research_note_bash/page.json rename to notes/flutter_web/lib/routes/notes/research/research_note_bash/page.json diff --git a/notes/flutter_web/lib/pages/notes/research/research_parameterized_example/page.dart b/notes/flutter_web/lib/routes/notes/research/research_parameterized_example/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/research/research_parameterized_example/page.dart rename to notes/flutter_web/lib/routes/notes/research/research_parameterized_example/page.dart diff --git a/notes/flutter_web/lib/pages/notes/research/research_parameterized_example/page.json b/notes/flutter_web/lib/routes/notes/research/research_parameterized_example/page.json similarity index 100% rename from notes/flutter_web/lib/pages/notes/research/research_parameterized_example/page.json rename to notes/flutter_web/lib/routes/notes/research/research_parameterized_example/page.json diff --git a/notes/flutter_web/lib/pages/notes/state/1.vanilla_state/1.1.hello.dart b/notes/flutter_web/lib/routes/notes/state/1.vanilla_state/1.1.hello.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/state/1.vanilla_state/1.1.hello.dart rename to notes/flutter_web/lib/routes/notes/state/1.vanilla_state/1.1.hello.dart diff --git a/notes/flutter_web/lib/pages/notes/state/1.vanilla_state/1.2.state_can_keep_instance.dart b/notes/flutter_web/lib/routes/notes/state/1.vanilla_state/1.2.state_can_keep_instance.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/state/1.vanilla_state/1.2.state_can_keep_instance.dart rename to notes/flutter_web/lib/routes/notes/state/1.vanilla_state/1.2.state_can_keep_instance.dart diff --git a/notes/flutter_web/lib/pages/notes/state/1.vanilla_state/2.1.child.dart b/notes/flutter_web/lib/routes/notes/state/1.vanilla_state/2.1.child.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/state/1.vanilla_state/2.1.child.dart rename to notes/flutter_web/lib/routes/notes/state/1.vanilla_state/2.1.child.dart diff --git a/notes/flutter_web/lib/pages/notes/state/1.vanilla_state/3.1.ChangeNotifier.dart b/notes/flutter_web/lib/routes/notes/state/1.vanilla_state/3.1.ChangeNotifier.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/state/1.vanilla_state/3.1.ChangeNotifier.dart rename to notes/flutter_web/lib/routes/notes/state/1.vanilla_state/3.1.ChangeNotifier.dart diff --git a/notes/flutter_web/lib/pages/notes/state/1.vanilla_state/3.2.ValueNotifer.dart b/notes/flutter_web/lib/routes/notes/state/1.vanilla_state/3.2.ValueNotifer.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/state/1.vanilla_state/3.2.ValueNotifer.dart rename to notes/flutter_web/lib/routes/notes/state/1.vanilla_state/3.2.ValueNotifer.dart diff --git a/notes/flutter_web/lib/pages/notes/state/1.vanilla_state/4.1.ListenableBuilder.dart b/notes/flutter_web/lib/routes/notes/state/1.vanilla_state/4.1.ListenableBuilder.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/state/1.vanilla_state/4.1.ListenableBuilder.dart rename to notes/flutter_web/lib/routes/notes/state/1.vanilla_state/4.1.ListenableBuilder.dart diff --git a/notes/flutter_web/lib/pages/notes/state/1.vanilla_state/5.1.function_state.dart b/notes/flutter_web/lib/routes/notes/state/1.vanilla_state/5.1.function_state.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/state/1.vanilla_state/5.1.function_state.dart rename to notes/flutter_web/lib/routes/notes/state/1.vanilla_state/5.1.function_state.dart diff --git a/notes/flutter_web/lib/pages/notes/state/1.vanilla_state/page.dart b/notes/flutter_web/lib/routes/notes/state/1.vanilla_state/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/state/1.vanilla_state/page.dart rename to notes/flutter_web/lib/routes/notes/state/1.vanilla_state/page.dart diff --git a/notes/flutter_web/lib/pages/notes/state/StatefulBuilder/page.dart b/notes/flutter_web/lib/routes/notes/state/StatefulBuilder/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/state/StatefulBuilder/page.dart rename to notes/flutter_web/lib/routes/notes/state/StatefulBuilder/page.dart diff --git a/notes/flutter_web/lib/pages/notes/state/page.dart b/notes/flutter_web/lib/routes/notes/state/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/state/page.dart rename to notes/flutter_web/lib/routes/notes/state/page.dart diff --git a/notes/flutter_web/lib/pages/notes/style&theming/Material/sample1.dart b/notes/flutter_web/lib/routes/notes/style&theming/Material/sample1.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/style&theming/Material/sample1.dart rename to notes/flutter_web/lib/routes/notes/style&theming/Material/sample1.dart diff --git a/notes/flutter_web/lib/pages/notes/style&theming/material3/page.dart b/notes/flutter_web/lib/routes/notes/style&theming/material3/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/style&theming/material3/page.dart rename to notes/flutter_web/lib/routes/notes/style&theming/material3/page.dart diff --git a/notes/flutter_web/lib/pages/notes/thinking_in_ui/readable_html_vs_dart/main.dart b/notes/flutter_web/lib/routes/notes/thinking_in_ui/readable_html_vs_dart/main.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/thinking_in_ui/readable_html_vs_dart/main.dart rename to notes/flutter_web/lib/routes/notes/thinking_in_ui/readable_html_vs_dart/main.dart diff --git a/notes/flutter_web/lib/pages/notes/thinking_in_ui/readable_html_vs_dart/page.dart b/notes/flutter_web/lib/routes/notes/thinking_in_ui/readable_html_vs_dart/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/thinking_in_ui/readable_html_vs_dart/page.dart rename to notes/flutter_web/lib/routes/notes/thinking_in_ui/readable_html_vs_dart/page.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/container_widgets/Card/sample1.dart b/notes/flutter_web/lib/routes/notes/widgets/container_widgets/Card/sample1.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/container_widgets/Card/sample1.dart rename to notes/flutter_web/lib/routes/notes/widgets/container_widgets/Card/sample1.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/container_widgets/app/1.hello_meterial_app.dart b/notes/flutter_web/lib/routes/notes/widgets/container_widgets/app/1.hello_meterial_app.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/container_widgets/app/1.hello_meterial_app.dart rename to notes/flutter_web/lib/routes/notes/widgets/container_widgets/app/1.hello_meterial_app.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/container_widgets/bar/page.dart b/notes/flutter_web/lib/routes/notes/widgets/container_widgets/bar/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/container_widgets/bar/page.dart rename to notes/flutter_web/lib/routes/notes/widgets/container_widgets/bar/page.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/container_widgets/dialog/1.sample_dialog.dart b/notes/flutter_web/lib/routes/notes/widgets/container_widgets/dialog/1.sample_dialog.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/container_widgets/dialog/1.sample_dialog.dart rename to notes/flutter_web/lib/routes/notes/widgets/container_widgets/dialog/1.sample_dialog.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/container_widgets/dialog/2.alert_dialog.dart b/notes/flutter_web/lib/routes/notes/widgets/container_widgets/dialog/2.alert_dialog.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/container_widgets/dialog/2.alert_dialog.dart rename to notes/flutter_web/lib/routes/notes/widgets/container_widgets/dialog/2.alert_dialog.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/container_widgets/drawer/1.drawer_in_body.dart b/notes/flutter_web/lib/routes/notes/widgets/container_widgets/drawer/1.drawer_in_body.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/container_widgets/drawer/1.drawer_in_body.dart rename to notes/flutter_web/lib/routes/notes/widgets/container_widgets/drawer/1.drawer_in_body.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/container_widgets/drawer/2.drawer_header.dart b/notes/flutter_web/lib/routes/notes/widgets/container_widgets/drawer/2.drawer_header.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/container_widgets/drawer/2.drawer_header.dart rename to notes/flutter_web/lib/routes/notes/widgets/container_widgets/drawer/2.drawer_header.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/container_widgets/menu/page.dart b/notes/flutter_web/lib/routes/notes/widgets/container_widgets/menu/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/container_widgets/menu/page.dart rename to notes/flutter_web/lib/routes/notes/widgets/container_widgets/menu/page.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/container_widgets/page_view/1.sample.dart b/notes/flutter_web/lib/routes/notes/widgets/container_widgets/page_view/1.sample.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/container_widgets/page_view/1.sample.dart rename to notes/flutter_web/lib/routes/notes/widgets/container_widgets/page_view/1.sample.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/container_widgets/scrollable/Dismissible/page.dart b/notes/flutter_web/lib/routes/notes/widgets/container_widgets/scrollable/Dismissible/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/container_widgets/scrollable/Dismissible/page.dart rename to notes/flutter_web/lib/routes/notes/widgets/container_widgets/scrollable/Dismissible/page.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/container_widgets/scrollable/Dismissible/sample1.dart b/notes/flutter_web/lib/routes/notes/widgets/container_widgets/scrollable/Dismissible/sample1.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/container_widgets/scrollable/Dismissible/sample1.dart rename to notes/flutter_web/lib/routes/notes/widgets/container_widgets/scrollable/Dismissible/sample1.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/container_widgets/scrollable/DraggableScrollableSheet/sample1.dart b/notes/flutter_web/lib/routes/notes/widgets/container_widgets/scrollable/DraggableScrollableSheet/sample1.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/container_widgets/scrollable/DraggableScrollableSheet/sample1.dart rename to notes/flutter_web/lib/routes/notes/widgets/container_widgets/scrollable/DraggableScrollableSheet/sample1.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/note.md b/notes/flutter_web/lib/routes/notes/widgets/note.md similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/note.md rename to notes/flutter_web/lib/routes/notes/widgets/note.md diff --git a/notes/flutter_web/lib/pages/notes/widgets/specific_widgets/Divider/1.sample_divider.dart b/notes/flutter_web/lib/routes/notes/widgets/specific_widgets/Divider/1.sample_divider.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/specific_widgets/Divider/1.sample_divider.dart rename to notes/flutter_web/lib/routes/notes/widgets/specific_widgets/Divider/1.sample_divider.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/specific_widgets/Divider/2.sample_vertical_divider.dart b/notes/flutter_web/lib/routes/notes/widgets/specific_widgets/Divider/2.sample_vertical_divider.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/specific_widgets/Divider/2.sample_vertical_divider.dart rename to notes/flutter_web/lib/routes/notes/widgets/specific_widgets/Divider/2.sample_vertical_divider.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/specific_widgets/button/ButtonStyleButton/1.elevated_button.dart b/notes/flutter_web/lib/routes/notes/widgets/specific_widgets/button/ButtonStyleButton/1.elevated_button.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/specific_widgets/button/ButtonStyleButton/1.elevated_button.dart rename to notes/flutter_web/lib/routes/notes/widgets/specific_widgets/button/ButtonStyleButton/1.elevated_button.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/specific_widgets/button/ButtonStyleButton/page.dart b/notes/flutter_web/lib/routes/notes/widgets/specific_widgets/button/ButtonStyleButton/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/specific_widgets/button/ButtonStyleButton/page.dart rename to notes/flutter_web/lib/routes/notes/widgets/specific_widgets/button/ButtonStyleButton/page.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/specific_widgets/button/FloatingActionButton/page.dart b/notes/flutter_web/lib/routes/notes/widgets/specific_widgets/button/FloatingActionButton/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/specific_widgets/button/FloatingActionButton/page.dart rename to notes/flutter_web/lib/routes/notes/widgets/specific_widgets/button/FloatingActionButton/page.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/specific_widgets/button/IconButton/page.dart b/notes/flutter_web/lib/routes/notes/widgets/specific_widgets/button/IconButton/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/specific_widgets/button/IconButton/page.dart rename to notes/flutter_web/lib/routes/notes/widgets/specific_widgets/button/IconButton/page.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/specific_widgets/button/overview/page.dart b/notes/flutter_web/lib/routes/notes/widgets/specific_widgets/button/overview/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/specific_widgets/button/overview/page.dart rename to notes/flutter_web/lib/routes/notes/widgets/specific_widgets/button/overview/page.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/specific_widgets/icon/page.dart b/notes/flutter_web/lib/routes/notes/widgets/specific_widgets/icon/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/specific_widgets/icon/page.dart rename to notes/flutter_web/lib/routes/notes/widgets/specific_widgets/icon/page.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/specific_widgets/input/page.dart b/notes/flutter_web/lib/routes/notes/widgets/specific_widgets/input/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/specific_widgets/input/page.dart rename to notes/flutter_web/lib/routes/notes/widgets/specific_widgets/input/page.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/specific_widgets/selectable/page.dart b/notes/flutter_web/lib/routes/notes/widgets/specific_widgets/selectable/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/specific_widgets/selectable/page.dart rename to notes/flutter_web/lib/routes/notes/widgets/specific_widgets/selectable/page.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/specific_widgets/slider/1.slider.dart b/notes/flutter_web/lib/routes/notes/widgets/specific_widgets/slider/1.slider.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/specific_widgets/slider/1.slider.dart rename to notes/flutter_web/lib/routes/notes/widgets/specific_widgets/slider/1.slider.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/specific_widgets/slider/page.dart b/notes/flutter_web/lib/routes/notes/widgets/specific_widgets/slider/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/specific_widgets/slider/page.dart rename to notes/flutter_web/lib/routes/notes/widgets/specific_widgets/slider/page.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/specific_widgets/text/RichText/page.dart b/notes/flutter_web/lib/routes/notes/widgets/specific_widgets/text/RichText/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/specific_widgets/text/RichText/page.dart rename to notes/flutter_web/lib/routes/notes/widgets/specific_widgets/text/RichText/page.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/specific_widgets/text/Text/1.text_normal.dart b/notes/flutter_web/lib/routes/notes/widgets/specific_widgets/text/Text/1.text_normal.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/specific_widgets/text/Text/1.text_normal.dart rename to notes/flutter_web/lib/routes/notes/widgets/specific_widgets/text/Text/1.text_normal.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/specific_widgets/text/Text/2.text_rich.dart b/notes/flutter_web/lib/routes/notes/widgets/specific_widgets/text/Text/2.text_rich.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/specific_widgets/text/Text/2.text_rich.dart rename to notes/flutter_web/lib/routes/notes/widgets/specific_widgets/text/Text/2.text_rich.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/specific_widgets/text/Text/page.dart b/notes/flutter_web/lib/routes/notes/widgets/specific_widgets/text/Text/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/specific_widgets/text/Text/page.dart rename to notes/flutter_web/lib/routes/notes/widgets/specific_widgets/text/Text/page.dart diff --git a/notes/flutter_web/lib/pages/notes/widgets/specific_widgets/webview/page.dart b/notes/flutter_web/lib/routes/notes/widgets/specific_widgets/webview/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/widgets/specific_widgets/webview/page.dart rename to notes/flutter_web/lib/routes/notes/widgets/specific_widgets/webview/page.dart diff --git a/notes/flutter_web/lib/pages/notes/x.note_inside/1.welcome/page.dart b/notes/flutter_web/lib/routes/notes/x.note_inside/1.welcome/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/x.note_inside/1.welcome/page.dart rename to notes/flutter_web/lib/routes/notes/x.note_inside/1.welcome/page.dart diff --git a/notes/flutter_web/lib/pages/notes/x.note_inside/1.welcome/page.json b/notes/flutter_web/lib/routes/notes/x.note_inside/1.welcome/page.json similarity index 100% rename from notes/flutter_web/lib/pages/notes/x.note_inside/1.welcome/page.json rename to notes/flutter_web/lib/routes/notes/x.note_inside/1.welcome/page.json diff --git a/notes/flutter_web/lib/pages/notes/x.note_inside/how_note_work/page.dart b/notes/flutter_web/lib/routes/notes/x.note_inside/how_note_work/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/x.note_inside/how_note_work/page.dart rename to notes/flutter_web/lib/routes/notes/x.note_inside/how_note_work/page.dart diff --git a/notes/flutter_web/lib/pages/notes/x.note_inside/how_note_work/page.json b/notes/flutter_web/lib/routes/notes/x.note_inside/how_note_work/page.json similarity index 100% rename from notes/flutter_web/lib/pages/notes/x.note_inside/how_note_work/page.json rename to notes/flutter_web/lib/routes/notes/x.note_inside/how_note_work/page.json diff --git a/notes/flutter_web/lib/pages/notes/x.note_inside/mockup_content/page.dart b/notes/flutter_web/lib/routes/notes/x.note_inside/mockup_content/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/x.note_inside/mockup_content/page.dart rename to notes/flutter_web/lib/routes/notes/x.note_inside/mockup_content/page.dart diff --git a/notes/flutter_web/lib/pages/notes/x.note_inside/note_api_thinking/format2_md_is_king.dart b/notes/flutter_web/lib/routes/notes/x.note_inside/note_api_thinking/format2_md_is_king.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/x.note_inside/note_api_thinking/format2_md_is_king.dart rename to notes/flutter_web/lib/routes/notes/x.note_inside/note_api_thinking/format2_md_is_king.dart diff --git a/notes/flutter_web/lib/pages/notes/x.note_inside/note_api_thinking/format_1.1_cell_block_is_king.dart b/notes/flutter_web/lib/routes/notes/x.note_inside/note_api_thinking/format_1.1_cell_block_is_king.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/x.note_inside/note_api_thinking/format_1.1_cell_block_is_king.dart rename to notes/flutter_web/lib/routes/notes/x.note_inside/note_api_thinking/format_1.1_cell_block_is_king.dart diff --git a/notes/flutter_web/lib/pages/notes/x.note_inside/note_api_thinking/format_1.2_cell_tree_is_king.dart b/notes/flutter_web/lib/routes/notes/x.note_inside/note_api_thinking/format_1.2_cell_tree_is_king.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/x.note_inside/note_api_thinking/format_1.2_cell_tree_is_king.dart rename to notes/flutter_web/lib/routes/notes/x.note_inside/note_api_thinking/format_1.2_cell_tree_is_king.dart diff --git a/notes/flutter_web/lib/pages/notes/x.note_inside/note_api_thinking/format_3_real_api.dart b/notes/flutter_web/lib/routes/notes/x.note_inside/note_api_thinking/format_3_real_api.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/x.note_inside/note_api_thinking/format_3_real_api.dart rename to notes/flutter_web/lib/routes/notes/x.note_inside/note_api_thinking/format_3_real_api.dart diff --git a/notes/flutter_web/lib/pages/notes/x.note_inside/note_test_self/nobody/page.dart b/notes/flutter_web/lib/routes/notes/x.note_inside/note_test_self/nobody/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/x.note_inside/note_test_self/nobody/page.dart rename to notes/flutter_web/lib/routes/notes/x.note_inside/note_test_self/nobody/page.dart diff --git a/notes/flutter_web/lib/pages/notes/x.note_inside/note_test_self/page.dart b/notes/flutter_web/lib/routes/notes/x.note_inside/note_test_self/page.dart similarity index 100% rename from notes/flutter_web/lib/pages/notes/x.note_inside/note_test_self/page.dart rename to notes/flutter_web/lib/routes/notes/x.note_inside/note_test_self/page.dart diff --git a/notes/flutter_web/lib/pages/notes/x.note_inside/note_test_self/page.json b/notes/flutter_web/lib/routes/notes/x.note_inside/note_test_self/page.json similarity index 100% rename from notes/flutter_web/lib/pages/notes/x.note_inside/note_test_self/page.json rename to notes/flutter_web/lib/routes/notes/x.note_inside/note_test_self/page.json diff --git a/notes/flutter_web/lib/pages/notes/x.note_inside/page.json b/notes/flutter_web/lib/routes/notes/x.note_inside/page.json similarity index 100% rename from notes/flutter_web/lib/pages/notes/x.note_inside/page.json rename to notes/flutter_web/lib/routes/notes/x.note_inside/page.json diff --git a/notes/flutter_web/pubspec.yaml b/notes/flutter_web/pubspec.yaml index b7d7bbe2..2584efe9 100644 --- a/notes/flutter_web/pubspec.yaml +++ b/notes/flutter_web/pubspec.yaml @@ -61,62 +61,61 @@ dev_dependencies: flutter: uses-material-design: true - # if app can not start , you can remove all prefix "lib/pages/*" assets , it is auto generated by note_tools + # if app can not start , you can remove all prefix "lib/routes/*" assets , it is auto generated by note_tools assets: - - lib/pages.g.json - - lib/pages/notes/ - - lib/pages/notes/Improve_app/ - - lib/pages/notes/Improve_app/1.overview/ - - lib/pages/notes/Improve_app/RepaintBoundary/ - - lib/pages/notes/Improve_app/event&listener&lifeycle/ - - lib/pages/notes/Improve_app/web_optimization/ - - lib/pages/notes/dev/debug/ - - lib/pages/notes/dev/devtool/ - - lib/pages/notes/dev/devtool/vmservice/ - - lib/pages/notes/dev/host_mirror/ - - lib/pages/notes/dev/macos_config/ - - lib/pages/notes/env_info/ - - lib/pages/notes/i18n/ - - lib/pages/notes/layout/ - - lib/pages/notes/layout/box_layout/constraints/ - - lib/pages/notes/layout/old/layout/ - - lib/pages/notes/layout/responsive_design/ - - lib/pages/notes/media&assets&file/assets/ - - lib/pages/notes/media&assets&file/file_desktop/ - - lib/pages/notes/media&assets&file/file_web/ - - lib/pages/notes/navigation/ - - lib/pages/notes/pure_dart/analyzer/ - - lib/pages/notes/pure_dart/async/ - - lib/pages/notes/pure_dart/dart3/ - - lib/pages/notes/pure_dart/execption/ - - lib/pages/notes/pure_dart/safe_interface/ - - lib/pages/notes/pure_dart/serialization_json/ - - lib/pages/notes/research/remote_view/ - - lib/pages/notes/research/research_parameterized_example/ - - lib/pages/notes/state/ - - lib/pages/notes/state/1.vanilla_state/ - - lib/pages/notes/state/StatefulBuilder/ - - lib/pages/notes/style&theming/material3/ - - lib/pages/notes/thinking_in_ui/readable_html_vs_dart/ - - lib/pages/notes/widgets/container_widgets/bar/ - - lib/pages/notes/widgets/container_widgets/menu/ - - lib/pages/notes/widgets/container_widgets/scrollable/Dismissible/ - - lib/pages/notes/widgets/specific_widgets/button/ButtonStyleButton/ - - lib/pages/notes/widgets/specific_widgets/button/FloatingActionButton/ - - lib/pages/notes/widgets/specific_widgets/button/IconButton/ - - lib/pages/notes/widgets/specific_widgets/button/overview/ - - lib/pages/notes/widgets/specific_widgets/icon/ - - lib/pages/notes/widgets/specific_widgets/input/ - - lib/pages/notes/widgets/specific_widgets/selectable/ - - lib/pages/notes/widgets/specific_widgets/slider/ - - lib/pages/notes/widgets/specific_widgets/text/RichText/ - - lib/pages/notes/widgets/specific_widgets/text/Text/ - - lib/pages/notes/widgets/specific_widgets/webview/ - - lib/pages/notes/x.note_inside/1.welcome/ - - lib/pages/notes/x.note_inside/how_note_work/ - - lib/pages/notes/x.note_inside/mockup_content/ - - lib/pages/notes/x.note_inside/note_test_self/ - - lib/pages/notes/x.note_inside/note_test_self/nobody/ + - lib/routes/notes/ + - lib/routes/notes/Improve_app/ + - lib/routes/notes/Improve_app/1.overview/ + - lib/routes/notes/Improve_app/RepaintBoundary/ + - lib/routes/notes/Improve_app/event&listener&lifeycle/ + - lib/routes/notes/Improve_app/web_optimization/ + - lib/routes/notes/dev/debug/ + - lib/routes/notes/dev/devtool/ + - lib/routes/notes/dev/devtool/vmservice/ + - lib/routes/notes/dev/host_mirror/ + - lib/routes/notes/dev/macos_config/ + - lib/routes/notes/env_info/ + - lib/routes/notes/i18n/ + - lib/routes/notes/layout/ + - lib/routes/notes/layout/box_layout/constraints/ + - lib/routes/notes/layout/old/layout/ + - lib/routes/notes/layout/responsive_design/ + - lib/routes/notes/media&assets&file/assets/ + - lib/routes/notes/media&assets&file/file_desktop/ + - lib/routes/notes/media&assets&file/file_web/ + - lib/routes/notes/navigation/ + - lib/routes/notes/pure_dart/analyzer/ + - lib/routes/notes/pure_dart/async/ + - lib/routes/notes/pure_dart/dart3/ + - lib/routes/notes/pure_dart/execption/ + - lib/routes/notes/pure_dart/safe_interface/ + - lib/routes/notes/pure_dart/serialization_json/ + - lib/routes/notes/research/remote_view/ + - lib/routes/notes/research/research_parameterized_example/ + - lib/routes/notes/state/ + - lib/routes/notes/state/1.vanilla_state/ + - lib/routes/notes/state/StatefulBuilder/ + - lib/routes/notes/style&theming/material3/ + - lib/routes/notes/thinking_in_ui/readable_html_vs_dart/ + - lib/routes/notes/widgets/container_widgets/bar/ + - lib/routes/notes/widgets/container_widgets/menu/ + - lib/routes/notes/widgets/container_widgets/scrollable/Dismissible/ + - lib/routes/notes/widgets/specific_widgets/button/ButtonStyleButton/ + - lib/routes/notes/widgets/specific_widgets/button/FloatingActionButton/ + - lib/routes/notes/widgets/specific_widgets/button/IconButton/ + - lib/routes/notes/widgets/specific_widgets/button/overview/ + - lib/routes/notes/widgets/specific_widgets/icon/ + - lib/routes/notes/widgets/specific_widgets/input/ + - lib/routes/notes/widgets/specific_widgets/selectable/ + - lib/routes/notes/widgets/specific_widgets/slider/ + - lib/routes/notes/widgets/specific_widgets/text/RichText/ + - lib/routes/notes/widgets/specific_widgets/text/Text/ + - lib/routes/notes/widgets/specific_widgets/webview/ + - lib/routes/notes/x.note_inside/1.welcome/ + - lib/routes/notes/x.note_inside/how_note_work/ + - lib/routes/notes/x.note_inside/mockup_content/ + - lib/routes/notes/x.note_inside/note_test_self/ + - lib/routes/notes/x.note_inside/note_test_self/nobody/ # An image asset can refer to one or more resolution-specific "variants", see # https://flutter.dev/assets-and-images/#resolution-aware diff --git a/notes/flutter_web/test/widget_test.dart b/notes/flutter_web/test/widget_test.dart index f26333b4..6b10172c 100644 --- a/notes/flutter_web/test/widget_test.dart +++ b/notes/flutter_web/test/widget_test.dart @@ -6,7 +6,7 @@ // tree, read text, and verify that the values of widget properties are correct. import 'package:flutter/material.dart'; -import 'package:flutter_web/pages/notes/widgets/container_widgets/Card/sample1.dart'; +import 'package:flutter_web/routes/notes/widgets/container_widgets/Card/sample1.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/you_cli/bin/cli.dart b/packages/you_cli/bin/cli.dart index 4da5f277..2175cfe2 100644 --- a/packages/you_cli/bin/cli.dart +++ b/packages/you_cli/bin/cli.dart @@ -15,9 +15,9 @@ import 'package:you_cli/src/yaml.dart'; // ignore: constant_identifier_names const String _LIB_ROOT = "lib"; // ignore: constant_identifier_names -const String _NOTES_ROOT = "lib/pages/notes"; +const String _NOTES_ROOT = "lib/routes/notes"; // ignore: constant_identifier_names -const String _PAGES_ROOT = "lib/pages"; +const String _PAGES_ROOT = "lib/routes"; // ignore: non_constant_identifier_names final Glob _PAGE_GLOB = Glob("{**/page.dart,page.dart}"); @@ -54,7 +54,7 @@ class CliSystem { Directory get libDir => pkgDir.childDirectory(_LIB_ROOT); - Stream pages() { + Stream routes() { var noteRootDir = pkgDir.childDirectory(_NOTES_ROOT); return _PAGE_GLOB.listFileSystem(fs, root: noteRootDir.path).where((e) => e is File).map((e) => PageLib( file: e as File, @@ -225,7 +225,7 @@ ${node.children.map((child) => _genRouteTreeCode(child)).map((e) => "$e,").join( import 'package:you_flutter/router.dart'; // ########################################### -// ## pages +// ## routes // ########################################### $pageImportsCode @@ -252,7 +252,7 @@ $newRoutes class PageLib { final FileSystem fs; - final Directory pagesRootDir; + final Directory routesRootDir; final Directory libDir; final String pkgName; final File file; @@ -264,10 +264,10 @@ class PageLib { required this.pkgDir, }) : fs = file.fileSystem, libDir = pkgDir.childDirectory(_LIB_ROOT), - pagesRootDir = pkgDir.childDirectory(_PAGES_ROOT); + routesRootDir = pkgDir.childDirectory(_PAGES_ROOT); String get noteRoutePath { - String result = path.dirname(path.relative(file.path, from: pagesRootDir.path)); + String result = path.dirname(path.relative(file.path, from: routesRootDir.path)); return result == "." ? "/" : path.join("/", result); } @@ -277,7 +277,7 @@ class PageLib { String get asset => "${path.relative(file.parent.path, from: pkgDir.path)}/"; /// note name平整化,可作为变量名: - /// lib/pages/1.a/b/page.dart ---> a_b + /// lib/routes/1.a/b/page.dart ---> a_b String get flatName { String dir = noteRoutePath; if (dir == "/") { diff --git a/packages/you_cli/lib/src/page.dart b/packages/you_cli/lib/src/page.dart index 57046e5b..95293815 100644 --- a/packages/you_cli/lib/src/page.dart +++ b/packages/you_cli/lib/src/page.dart @@ -47,7 +47,7 @@ class RouteNode { } /// note name平整化,可作为变量名: - /// lib/pages/1.a/b/page.dart ---> a_b + /// lib/routes/1.a/b/page.dart ---> a_b String get flatName { String p = routePath; if (p == "/") { diff --git a/packages/you_cli/lib/src/yaml.dart b/packages/you_cli/lib/src/yaml.dart index 8f93f74b..df74f634 100644 --- a/packages/you_cli/lib/src/yaml.dart +++ b/packages/you_cli/lib/src/yaml.dart @@ -71,7 +71,7 @@ class PubspecEdit { for (int i = 0; i < oldAssets.length; i++) { var oldAsset = oldAssets[i]; // manual config, leave it - // lib/pages is our Generated + // lib/routes is our Generated if (!oldAsset.startsWith(toUpdatePath)) { continue; } @@ -81,7 +81,7 @@ class PubspecEdit { continue; } - // prefix lib/pages is previously Generated ,and now not exists + // prefix lib/routes is previously Generated ,and now not exists _yamlEditor.remove([..._yamlPathAssets, i - removed]); removed++; } diff --git a/packages/you_cli/test/bin/page_test.dart b/packages/you_cli/test/bin/page_test.dart index fceae7be..b958f395 100644 --- a/packages/you_cli/test/bin/page_test.dart +++ b/packages/you_cli/test/bin/page_test.dart @@ -10,10 +10,10 @@ void main() { group("PageNode", () { test('create from directory', () { late MemoryFileSystem fs = MemoryFileSystem(); - fs.directory("/note/lib/pages/notes/page_1").createSync(recursive: true); - fs.directory("/note/lib/pages/notes/page_1/page_1_1").createSync(recursive: true); - fs.directory("/note/lib/pages/notes/page_1/page_1_2").createSync(recursive: true); - var rootPage = RouteNode.fromSync(fs.directory("/note/lib/pages")); + fs.directory("/note/lib/routes/notes/page_1").createSync(recursive: true); + fs.directory("/note/lib/routes/notes/page_1/page_1_1").createSync(recursive: true); + fs.directory("/note/lib/routes/notes/page_1/page_1_2").createSync(recursive: true); + var rootPage = RouteNode.fromSync(fs.directory("/note/lib/routes")); check(rootPage.toList().map((e) => e.routePath)).deepEquals([ "/", "/notes", @@ -26,12 +26,14 @@ void main() { group("Gen routes.g.dart", () { test('create from directory', () { late MemoryFileSystem fs = MemoryFileSystem(); + fs.file("/app/pubspec.yaml")..createSync(recursive: true)..writeAsString("""name: you"""); + fs.file("/app/lib/routes/page.dart").createSync(recursive: true); fs.file("/app/lib/routes/layout.dart").createSync(recursive: true); CliSystem cli = CliSystem(pkgDir: fs.directory("/app")); - Cmd_gen_routes_g_dart gen=Cmd_gen_routes_g_dart.libMode(fs: fs, async: true, dir: fs.directory("/app/lib/pages")); - // gen.builderExpression(dir); + Cmd_gen_routes_g_dart gen=Cmd_gen_routes_g_dart.libMode(fs: fs, async: true, dir: fs.directory("/app/lib/routes")); + gen.builderExpression(cli.routeRoot); // // var rootRoute = RouteDir.fromSync(dir); // check(rootRoute.toList().map((e) => e.routePath)).deepEquals(["/"]); diff --git a/packages/you_cli/test/bin/pubspec_edit_test.dart b/packages/you_cli/test/bin/pubspec_edit_test.dart index 71b324be..a6a41d2e 100644 --- a/packages/you_cli/test/bin/pubspec_edit_test.dart +++ b/packages/you_cli/test/bin/pubspec_edit_test.dart @@ -29,10 +29,10 @@ flutter: expect(pubspec.assets, ["assets/manual1"]); // when - pubspec.updateAssets(toUpdatePath: "lib/pages/notes/", toUpdate: ["lib/pages/notes/new/"]); + pubspec.updateAssets(toUpdatePath: "lib/routes/notes/", toUpdate: ["lib/routes/notes/new/"]); // then - expect(pubspec.assets, ['assets/manual1', 'lib/pages/notes/new/']); + expect(pubspec.assets, ['assets/manual1', 'lib/routes/notes/new/']); }); test('remove not exists', () async { @@ -40,17 +40,17 @@ flutter: flutter: assets: - assets/manual1 # manual config, keep it - - lib/pages/notes/rm/ # to remove + - lib/routes/notes/rm/ # to remove """); PubspecEdit pubspec = PubspecEdit.parseFileSync(file); var old = pubspec.assets; - expect(old, ["assets/manual1" ,"lib/pages/notes/rm/"]); + expect(old, ["assets/manual1" ,"lib/routes/notes/rm/"]); // when - pubspec.updateAssets(toUpdatePath: "lib/pages/notes/", toUpdate: ["lib/pages/notes/new/"]); + pubspec.updateAssets(toUpdatePath: "lib/routes/notes/", toUpdate: ["lib/routes/notes/new/"]); // then - expect(pubspec.assets, ['assets/manual1', 'lib/pages/notes/new/']); + expect(pubspec.assets, ['assets/manual1', 'lib/routes/notes/new/']); }); }); } diff --git a/packages/you_note_dart/lib/src/conventions.dart b/packages/you_note_dart/lib/src/conventions.dart index 4623ad2d..81120120 100644 --- a/packages/you_note_dart/lib/src/conventions.dart +++ b/packages/you_note_dart/lib/src/conventions.dart @@ -10,10 +10,10 @@ class Conventions { Conventions._(); String noteDartAssetPath(String notePath) { - return path.join("lib/pages", path.relative(notePath, from: "/"), "page.dart"); + return path.join("lib/routes", path.relative(notePath, from: "/"), "page.dart"); } String noteConfAssetPath(String notePath) { - return path.join("lib/pages", path.relative(notePath, from: "/"), "page.json"); + return path.join("lib/routes", path.relative(notePath, from: "/"), "page.json"); } } 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 c5f95a74..ed76394a 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 @@ -73,7 +73,7 @@ Exception: my throw "sources": [ "org-dartlang-sdk:///dart-sdk/lib/async/stream.dart", "org-dartlang-sdk:///dart-sdk/lib/async/stream_controller.dart", - "../../../lib/pages/notes/pure_dart/execption/note.dart", + "../../../lib/routes/notes/pure_dart/execption/note.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", @@ -633,7 +633,7 @@ Exception: my throw } """), ); - check(found.callerFrame!.library).endsWith("lib/pages/notes/pure_dart/execption/note.dart"); + check(found.callerFrame!.library).endsWith("lib/routes/notes/pure_dart/execption/note.dart"); // print("=====>${found.dartTrace}"); });