[FEAT]: Follow the system light/dark setting until a theme is chosen
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 79/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Dart
- Estrelas
- 9
- Forks
- 5
- Merge médio
- 49min
- PRs com merge (30d)
- 34
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Sem modelo de pull request
- Sem guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de CommandLineCoding/Elephant
-
area: mobile chore good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
CommandLineCoding/Elephant#247 ·
Mantenedores costumam responder em até 1 dia
-
area: mobile bug good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
CommandLineCoding/Elephant#245 ·
Mantenedores costumam responder em até 1 dia
-
area: mobile enhancement good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
CommandLineCoding/Elephant#183 ·
Mantenedores costumam responder em até 1 dia
-
area: mobile difficulty: medium enhancement
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 56/100
CommandLineCoding/Elephant#249 ·
Mantenedores costumam responder em até 1 dia
-
area: mobile chore difficulty: medium testing
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 66/100
CommandLineCoding/Elephant#248 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de CommandLineCoding/Elephant
Issues semelhantes
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 76/100
livekit/client-sdk-flutter#1281 ·
Mantenedores costumam responder em até 4 dias
-
android bug priority: P1 qa
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
GHRik/bielik_oneclick_launcher#55 ·
Mantenedores costumam responder em até 1 dia
-
SchedulerBinding.requestPerformanceMode(mode) does not forward the requested mode to the engine.Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
carp demo apps enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
carp-dk/carp.sensing-flutter#670 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100