Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Polish] Define an injectable connectivity stream

オープン
#5 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
84/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
dart, flutter
領域
mobile

調査の方向性

Start with lib/screens/sign_in_screen.dart and inspect how the sign-in button and screen state are built; then review pubspec.yaml and the Flutter test setup. Add the monitor in lib/connectivity/connectivity_monitor.dart and cover its injected stream in test/offline_banner_test.dart. Done means offline shows the banner and disables Sign In, online removes both effects, and the Flutter checks pass.

索引モデルが issue の本文から書いたものです。

説明

polish

What to build

Define the small connection-status interface that the app’s offline banner will use. Tests should be able to send online/offline changes without relying on the phone’s real network.

Files

  • lib/connectivity/connectivity_monitor.dart (new file)
  • Starting example: lib/app.dart
    Code to add or extend: abstract interface class ConnectivityMonitor { Stream<bool> get online; Future<void> dispose(); }.

Steps

  1. Add ConnectivityMonitor with Stream online and Future dispose(). true means the device has a network connection; it does not guarantee the internet is reachable.
  2. In tests, add FakeConnectivityMonitor using StreamController.broadcast(), an online getter and emit(bool). Close the controller in dispose.
  3. Check that emit(false) then emit(true) delivers those values. This issue defines the connection source; the next one adds the real library.

Example

emit(false),emit(true) produces those two events; disposing closes the stream.

Check it works

In test/connectivity/connectivity_monitor_5_test.dart, check the example above and the failure or limit described in the steps. Run flutter test test/connectivity/connectivity_monitor_5_test.dart and flutter analyze.

References

Assign yourself before starting, or comment to claim the issue. Project setup.

主要言語
PLpgSQL
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DevDogsUGA/DogPack のほかの issue

DevDogsUGA/DogPack の issue をすべて見る

似ている issue

Mobile Dev の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。