[Polish] Define an injectable connectivity stream
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 84/100
調査の方向性
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 の本文から書いたものです。
説明
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
- Add
ConnectivityMonitorwith Stream online and Future dispose(). true means the device has a network connection; it does not guarantee the internet is reachable. - In tests, add
FakeConnectivityMonitorusing StreamController.broadcast(), an online getter and emit(bool). Close the controller in dispose. - 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 はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DevDogsUGA/DogPack のほかの issue
-
polish
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
DevDogsUGA/DogPack#131 ·
-
polish
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
DevDogsUGA/DogPack#130 ·
-
moderation
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
DevDogsUGA/DogPack#119 ·
-
moderation
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
DevDogsUGA/DogPack#113 ·
-
discover
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
DevDogsUGA/DogPack#106 ·
DevDogsUGA/DogPack の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
software-mansion/argent#1457 ·
メンテナーはふだん 1 日以内に返信
-
fyi-ecosystem platform-ios team-ios
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
flutter/flutter#194348 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
callstack/react-native-brownfield#492 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
BOLT 12
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信