[FEAT]: Follow the system light/dark setting until a theme is chosen
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 79/100
Piste de recherche
Start with mobile/lib/themes/theme_provider.dart to see how the current theme is stored and updated, then read mobile/lib/main.dart for how MaterialApp receives it and mobile/lib/pages/settings/appearance.dart for saved choices. Check how the app can observe system brightness and how theme changes are tested. Done means the app follows light or dark system changes until a theme is chosen, and a saved choice takes precedence.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Context
A new install always starts in Frost, the light theme (ThemeProvider._currentTheme = ThemeType.frost), even when the phone is set to dark mode.
What to do
- Until the user picks a theme, follow the system setting: Frost when the system is light, Nebula (or Onyx) when it is dark, and switch when the system setting changes.
- Once the user picks a theme in Appearance, keep their choice.
- Optionally, add a "Match system" option at the top of the Appearance page.
- Tests for the default in light and dark, and for a saved choice winning.
Where to look
mobile/lib/themes/theme_provider.dart, mobile/lib/main.dart (MaterialApp), mobile/lib/pages/settings/appearance.dart.
Good to know
MediaQuery.platformBrightnessOf(context) or PlatformDispatcher.instance.platformBrightness give the system setting.
- Langage dominant
- Dart
- Étoiles
- 9
- Forks
- 5
- Merge moyen
- 49 min
- PR mergées (30 j)
- 34
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Aucun modèle de pull request
- Aucun guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de CommandLineCoding/Elephant
-
area: mobile chore good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
CommandLineCoding/Elephant#247 ·
Les mainteneurs répondent en général sous 1 jour
-
area: mobile bug good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
CommandLineCoding/Elephant#245 ·
Les mainteneurs répondent en général sous 1 jour
-
area: mobile enhancement good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
CommandLineCoding/Elephant#183 ·
Les mainteneurs répondent en général sous 1 jour
-
area: mobile difficulty: medium enhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 56/100
CommandLineCoding/Elephant#249 ·
Les mainteneurs répondent en général sous 1 jour
-
area: mobile chore difficulty: medium testing
Difficulté 4/5 3-5 jours Accessibilité débutants 66/100
CommandLineCoding/Elephant#248 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de CommandLineCoding/Elephant
Issues similaires
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 76/100
livekit/client-sdk-flutter#1281 ·
Les mainteneurs répondent en général sous 4 jours
-
android bug priority: P1 qa
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
GHRik/bielik_oneclick_launcher#55 ·
Les mainteneurs répondent en général sous 1 jour
-
SchedulerBinding.requestPerformanceMode(mode) does not forward the requested mode to the engine.Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
carp demo apps enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
carp-dk/carp.sensing-flutter#670 ·
-
[BUG] IP 质量类型误判:ISP 静态段被显示为机房Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100