{"id":13684500,"url":"https://github.com/xyhxx/proste_indexed_stack","last_synced_at":"2025-04-15T16:50:31.503Z","repository":{"id":56837412,"uuid":"354314750","full_name":"xyhxx/proste_indexed_stack","owner":"xyhxx","description":"flutter IndexedStack懒加载Widget","archived":false,"fork":false,"pushed_at":"2021-09-15T05:57:09.000Z","size":75,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T03:02:32.245Z","etag":null,"topics":["dart","flutter","indexed-stack","lazyload"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/proste_indexed_stack","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xyhxx.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-03T14:37:25.000Z","updated_at":"2024-02-17T21:15:17.000Z","dependencies_parsed_at":"2022-09-13T08:50:13.304Z","dependency_job_id":null,"html_url":"https://github.com/xyhxx/proste_indexed_stack","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyhxx%2Fproste_indexed_stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyhxx%2Fproste_indexed_stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyhxx%2Fproste_indexed_stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyhxx%2Fproste_indexed_stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xyhxx","download_url":"https://codeload.github.com/xyhxx/proste_indexed_stack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249112843,"owners_count":21214776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","flutter","indexed-stack","lazyload"],"created_at":"2024-08-02T14:00:34.237Z","updated_at":"2025-04-15T16:50:31.473Z","avatar_url":"https://github.com/xyhxx.png","language":"Dart","funding_links":[],"categories":["Dart"],"sub_categories":[],"readme":"\u003cimg src=\"https://raw.githubusercontent.com/xyhxx/program_preview/master/logo/indexed_stack.png\" /\u003e\n\nEnglist | \u003ca href=\"https://github.com/xyhxx/proste_indexed_stack/blob/master/doc/cn.md\"\u003e中文\u003c/a\u003e\n\n# Introduce\n\nThe indexedstack component provides lazy loading function. When the page is pushed into the stack before the first presentation, all the parameters are consistent with IndexedStack. You can use ProsteIndexedStack like IndexedStack.\n\n# Tip\n\nIn debug mode, there may be delay when switching pages for the first time, which is normal in release mode and has been tested.\n\n# Usage\n\n`preload` Some pages can be preloaded. Note that even if preload is false, the index page at initialization will be preloaded.\n\nIf you don't like the current way of using IndexedStack and think it's different from the normal way of using IndexedStack, or your page doesn't need to be preloaded at all, and it's troublesome to wrap IndexedStackChild, you can use version `0.1.1`. This version's way of using IndexedStack is exactly the same as that of the current version, except that there is no preloading function.\n\n``` dart\nint _current = 0;\n\nProsteIndexedStack(\n  index: _current,\n  children: [\n    IndexedStackChild(child: HomePage()),\n    IndexedStackChild(child: Page2()),\n    IndexedStackChild(child: Page3(), preload: true),\n    IndexedStackChild(child: Page4()),\n  ],\n)\n```\n\nIf you have any suggestions or problems in used, welcome to\u003ca href=\"https://github.com/xyhxx/proste_indexed_stack/issues\"\u003eissues\u003c/a\u003e,I will check and reply regularly.\n\n\n```\n\nMIT License\n\nCopyright (c) 2021 xyhxx\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyhxx%2Fproste_indexed_stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxyhxx%2Fproste_indexed_stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyhxx%2Fproste_indexed_stack/lists"}