{"id":18650233,"url":"https://github.com/zuki/zuki_catalog","last_synced_at":"2025-11-05T11:30:26.302Z","repository":{"id":149402121,"uuid":"265987266","full_name":"zuki/zuki_catalog","owner":"zuki","description":"Offline catalog for iOS developed by Flutter","archived":false,"fork":false,"pushed_at":"2020-07-04T05:26:34.000Z","size":1229,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-27T13:10:09.275Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zuki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-22T01:11:02.000Z","updated_at":"2020-07-04T05:26:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"e392d942-8288-4b81-82ad-527f647cd485","html_url":"https://github.com/zuki/zuki_catalog","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuki%2Fzuki_catalog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuki%2Fzuki_catalog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuki%2Fzuki_catalog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuki%2Fzuki_catalog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zuki","download_url":"https://codeload.github.com/zuki/zuki_catalog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239457658,"owners_count":19642092,"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":[],"created_at":"2024-11-07T06:43:02.157Z","updated_at":"2025-11-05T11:30:26.247Z","avatar_url":"https://github.com/zuki.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zuki_catalog\n\nFlutterで作成したオフライン目録検索。バーコードスキャンによるISBN検索とタイトルの中間一致検索が可能。\n\n## 実装\n\n1. データベース検索には`sqflite`を使用。\n2. バーコードスキャンには`barcode_scan`を使用。\n3. v1.0は逐次検索、v1.1は検索キー入力で検索, v1.2で1画面にして再度逐次検索。\n\n## 参考サイト\n\n- [Building a Cupertino app with Flutter](https://codelabs.developers.google.com/codelabs/flutter-cupertino/index.html)\n\n    iOS UI(Cupertino Library)アプリを作成するためのコードを借用。\n\n- [Open an asset database](https://github.com/tekartik/sqflite/blob/master/sqflite/doc/opening_asset_db.md)\n\n    既存のSQLite3データベースを使用するためのコードを借用。\n\n- [Using Sqflite in Flutter Application](https://medium.com/pharos-production/using-sqflite-in-flutter-application-bc21bf446154)\n\n    データベースをシングルトンで使用するためのコードを借用。\n\n## iOSアプリのサイズ\n\nこのソースを普通に`flutter run --release`で作成したアプリは200MB超えのバカでかいサイズとなった。これは[バグではない](https://github.com/flutter/flutter/issues/47101#issuecomment-567522077)そうで、[次のようにする](https://github.com/flutter/flutter/issues/49855)と半分以下(108.4MB)になった。もっとも、それでもまだまだ大きい。同等機能のネイティブアプリのサイズは28.8MBで3倍強である。まだ方法はありそう。\n\n```bash\n$ flutter build ios --profile\n$ flutter install\n```\n\n以下の難読化とシンボルの書き出しを行ったが、サイズは102.8MBとあまり小さくならなかった。\n\n```bash\n$ flutter build ios --profile --obfuscate --split-debug-info=./info\n```\n\n## TODO\n\n`CupertinoTextField`の`onChanged`で入力文字を取得して逐次検索しているが、漢字変換途中の文字も拾ってしまう。拾わない方法をいろいろ調べたがまだ見つからない。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuki%2Fzuki_catalog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzuki%2Fzuki_catalog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuki%2Fzuki_catalog/lists"}