Merge pull request #334 from ente-io/theme_toggle

Theme toggle
This commit is contained in:
Vishnu Mohandas 2022-06-20 23:10:28 +05:30 committed by GitHub
commit 111de416ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -259,7 +259,7 @@ class _EnteAppState extends State<EnteApp> with WidgetsBindingObserver {
@override
Widget build(BuildContext context) {
if (kDebugMode && Platform.isAndroid) {
if (Platform.isAndroid) {
return AdaptiveTheme(
light: lightThemeData,
dark: darkThemeData,

View file

@ -43,7 +43,7 @@ class SettingsPage extends StatelessWidget {
.subtitle1
.copyWith(overflow: TextOverflow.ellipsis),
),
(kDebugMode && Platform.isAndroid)
(Platform.isAndroid)
? ThemeSwitchWidget()
: const SizedBox.shrink(),
],

View file

@ -11,7 +11,7 @@ description: ente photos application
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.6.0+330
version: 0.6.1+331
environment:
sdk: ">=2.10.0 <3.0.0"