Offline banner on the sign-in screen
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 84/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What to build
When the phone has no network, show a banner at the top of the sign-in screen ("You're offline. Connect to sign in.") and disable the Sign In button; remove both effects when the connection returns. Add connectivity_plus (or the lightest equivalent) behind a small interface so tests can fake it.
Files
pubspec.yaml,pubspec.lock- new
lib/connectivity/connectivity_monitor.dart(interface plus the real implementation) lib/screens/sign_in_screen.dart- new
test/offline_banner_test.dart
Acceptance
- Banner and disabled button appear within a second of losing the connection and go away when it returns.
- The monitor is injected, not read from a global, so a test supplies a fake stream.
- Widget test: offline shows the banner and a disabled button; online hides it.
-
pubspec.lockis committed with the change and CI'sflutterjob passes.
How to check
flutter test test/offline_banner_test.dart; toggle airplane mode on the emulator and attach a short screen recording.
Before you start
Setup is in first contribution. Run flutter analyze and flutter test before you open the PR; both must pass. Keep the change to the files listed. Comment on this issue to claim it.
- Lingua principale
- PLpgSQL
- Stelle
- 0
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DevDogsUGA/DogPack
-
discover
Difficoltà 2/5 1-3 ore Idoneità per principianti 91/100
DevDogsUGA/DogPack#14 ·
-
onboarding
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
DevDogsUGA/DogPack#10 ·
-
good first issue onboarding
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
DevDogsUGA/DogPack#8 ·
-
good first issue onboarding
Difficoltà 2/5 1-3 ore Idoneità per principianti 91/100
DevDogsUGA/DogPack#7 ·
-
good first issue polish
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
DevDogsUGA/DogPack#4 ·
Tutte le issue di DevDogsUGA/DogPack
Issue simili
-
[BUG] Navigation drawer drops library-name suffixes without ellipsis (1.0.8, NVIDIA Shield)Forse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
damontecres/Wholphin#2069 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
rajput-hemant/calculator#199 ·
-
Android (vision-camera-location): HybridLocationManager never quits its HandlerThread on disposeAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
margelo/react-native-vision-camera#4217 ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
saisaharsh3/Leftovers#13 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
leancodepl/app-rating#35 ·