-
Notifications
You must be signed in to change notification settings - Fork 825
chore: Remove current dark mode implementation #3007
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: flutter
Are you sure you want to change the base?
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideForces the app to always use the light theme across platforms by removing dark-mode-specific theming, including Android launch/normal themes, and also adds missing geolocator plugins to the Windows and macOS generated registrant files and CMake plugin list. Sequence diagram for app startup with forced light themesequenceDiagram
actor User
participant AndroidOS
participant FlutterEngine
participant MaterialApp
participant AppTheme
User->>AndroidOS: Launch app
AndroidOS->>AndroidOS: Select LaunchTheme Theme.Light.NoTitleBar
AndroidOS->>FlutterEngine: Start Flutter engine
FlutterEngine->>MaterialApp: Create root widget
MaterialApp->>MaterialApp: Set themeMode light
MaterialApp->>AppTheme: Request lightTheme
AppTheme-->>MaterialApp: Return lightTheme
MaterialApp->>AndroidOS: Render first frame with light UI
User-->>MaterialApp: Sees light-themed interface
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey - I've left some high level feedback:
- If dark mode is fully disabled, consider removing the
values-nightvariant (or adding a short comment) since it now duplicates the light theme and may confuse future maintainers about whether dark mode is supported. - The macOS and Windows
GeneratedPluginRegistrant/generated_pluginfiles appear to be auto-generated; it’s usually better to exclude these from commits unless there is a specific reason to check in regenerated content.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- If dark mode is fully disabled, consider removing the `values-night` variant (or adding a short comment) since it now duplicates the light theme and may confuse future maintainers about whether dark mode is supported.
- The macOS and Windows `GeneratedPluginRegistrant`/`generated_plugin` files appear to be auto-generated; it’s usually better to exclude these from commits unless there is a specific reason to check in regenerated content.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Build StatusBuild successful. APKs to test: https://github.com/fossasia/pslab-app/actions/runs/20554651621/artifacts/4978782588. Screenshots |







-1_instruments_screen.png?raw=true)
-2_nav_drawer.png?raw=true)
-3_accelerometer.png?raw=true)
-4_power_source.png?raw=true)
-5_multimeter.png?raw=true)
-6_wave_generator.png?raw=true)
-7_oscilloscope.png?raw=true)
Fixes #2999
Changes
themeMode: ThemeMode.lightthemeanddarkThemeto useAppTheme.lightThemeResults
• Android Emulator (API 34)
• System Dark Mode ON/OFF
• App restart
Screenshots / Recordings
The below recording shows the ui of the app when the system dark mode is 'ON' and 'OFF'.
https://github.com/user-attachments/assets/1aea9d84-fb25-4783-9cac-067bdc4920e5
Checklist:
constants.dartor localization files instead of hard-coded values.dart formator the IDE formatter.flutter analyzeand tests run influtter test.Summary by Sourcery
Enforce a consistent light UI theme across platforms and align desktop plugin registration with existing geolocation dependencies.
New Features:
Enhancements:
Build: