Skip to content

example アプリの AppBar から OSS ライセンス一覧を開けるようにする - #45

Merged
LibraryLibrarian merged 3 commits into
developfrom
feature/example-license-page
Sep 26, 2026
Merged

LibraryLibrarian merged 3 commits into
developfrom
feature/example-license-page

Conversation

@LibraryLibrarian

Copy link
Copy Markdown
Owner

概要

example アプリの AppBar に info アイコンを追加し、タップで Flutter 標準の showLicensePage を開くよう変更。

変更内容

  • example/lib/main.dart: AppBar の actions に Icons.info_outline の IconButton を追加
  • example/lib/i18n/*.i18n.json: ツールチップ用の nav.licenses を6言語に追加
  • example/test/widget_test.dart
    • サーバー情報タブと同じアイコンになるため、タブ巡回テストの探索範囲を NavigationBar 内に限定
    • AppBar のボタンからライセンス画面が開くことを検証するテストを追加

example 配下のみの変更のため、ルートの CHANGELOG.md は更新なし。

確認内容

  • dart format / flutter analyze / flutter test(9件)が通ることを確認
  • flutter build apk --release と flutter build ios --release --no-codesign のビルド成功を確認
  • Android エミュレーター(API 33)で info アイコンの表示とタップでライセンス一覧が開くことを確認
  • iOS シミュレーター(iOS 18.2)で info アイコンの表示を確認

補足

  • 一覧は Flutter 標準の収集範囲(Dart/Flutter パッケージの LICENSE / NOTICES)に従うため、analyzer などの開発用パッケージも表示される。Android の Gradle 依存や iOS のネイティブ依存は自動では含まれない
  • 下部の「サーバー情報」タブと AppBar のボタンが同じアイコン

LibraryLibrarian and others added 3 commits September 26, 2026 13:44
標準の showLicensePage を開くボタンを追加し、ツールチップを6言語に翻訳。
サーバー情報タブと同じアイコンになるため、既存テストのタブ探索を NavigationBar 内に限定。

Co-Authored-By: Claude <noreply@anthropic.com>
@LibraryLibrarian
LibraryLibrarian merged commit a92449e into develop Sep 26, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant