Skip to content

Commit

Permalink
Merge branch 'develop' into feat/5430
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurtanuki authored Nov 6, 2024
2 parents af75722 + 104b3bf commit 1d0ba76
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import 'package:smooth_app/database/local_database.dart';
import 'package:smooth_app/pages/onboarding/onboarding_flow_navigator.dart';
import 'package:smooth_app/pages/onboarding/v2/onboarding_bottom_hills.dart';
import 'package:smooth_app/themes/smooth_theme_colors.dart';
import 'package:smooth_app/widgets/smooth_scaffold.dart';
import 'package:smooth_app/widgets/smooth_text.dart';

/// Onboarding page: "reinvention"
Expand All @@ -17,7 +18,7 @@ class OnboardingHomePage extends StatelessWidget {

@override
Widget build(BuildContext context) {
return Scaffold(
return SmoothScaffold(
backgroundColor: const Color(0xFFE3F3FE),
body: Provider<OnboardingConfig>.value(
value: OnboardingConfig._(MediaQuery.sizeOf(context)),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:flutter_svg/flutter_svg.dart';
Expand Down Expand Up @@ -267,10 +265,9 @@ class _UserPreferencesPageState extends State<UserPreferencesPage>
);
return SmoothScaffold(
statusBarBackgroundColor: dark ? null : headerColor,
brightness:
Theme.of(context).brightness == Brightness.light && Platform.isIOS
? Brightness.dark
: Brightness.light,
brightness: Theme.of(context).brightness == Brightness.light
? Brightness.dark
: Brightness.light,
contentBehindStatusBar: false,
spaceBehindStatusBar: false,
appBar: SmoothAppBar(
Expand Down
3 changes: 1 addition & 2 deletions packages/smooth_app/lib/widgets/smooth_scaffold.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ class SmoothScaffoldState extends ScaffoldState {
SystemUiOverlayStyle get _overlayStyle {
final Brightness? brightness;

// Invert brightness on iOS devices
if (Platform.isIOS && _brightness == null) {
if (_brightness == null) {
switch (Theme.of(context).brightness) {
case Brightness.dark:
brightness = Brightness.light;
Expand Down

0 comments on commit 1d0ba76

Please sign in to comment.