From b807c20b28c0a1d6590e69129afb664aa1a30853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20M=C3=B6ltgen?= <39344769+M123-dev@users.noreply.github.com> Date: Fri, 4 Nov 2022 19:22:32 +0100 Subject: [PATCH] fix: Darkmode back button (#3264) * fix: Darkmode * Update lock * 1 --- packages/app/pubspec.yaml | 2 +- .../lib/generic_lib/widgets/smooth_back_button.dart | 4 ++-- packages/smooth_app/lib/pages/product/new_product_page.dart | 2 +- .../lib/pages/product/product_image_gallery_view.dart | 1 - 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/app/pubspec.yaml b/packages/app/pubspec.yaml index 070977b8d56..7e07bcc56de 100644 --- a/packages/app/pubspec.yaml +++ b/packages/app/pubspec.yaml @@ -46,4 +46,4 @@ dependency_overrides: flutter: generate: true - uses-material-design: true \ No newline at end of file + uses-material-design: true diff --git a/packages/smooth_app/lib/generic_lib/widgets/smooth_back_button.dart b/packages/smooth_app/lib/generic_lib/widgets/smooth_back_button.dart index aa4cb8ed708..1d62b8eca0e 100644 --- a/packages/smooth_app/lib/generic_lib/widgets/smooth_back_button.dart +++ b/packages/smooth_app/lib/generic_lib/widgets/smooth_back_button.dart @@ -27,8 +27,8 @@ class SmoothBackButton extends StatelessWidget { ConstantIcons.instance.getBackIcon(), color: iconColor ?? (Theme.of(context).colorScheme.brightness == Brightness.light - ? Colors.white - : Colors.black), + ? Colors.black + : Colors.white), ), ), ), diff --git a/packages/smooth_app/lib/pages/product/new_product_page.dart b/packages/smooth_app/lib/pages/product/new_product_page.dart index ac5c7c5e77c..7d1b4a7cfa1 100644 --- a/packages/smooth_app/lib/pages/product/new_product_page.dart +++ b/packages/smooth_app/lib/pages/product/new_product_page.dart @@ -128,7 +128,7 @@ class _ProductPageState extends State with TraceableClientMixin { ), child: Offstage( offstage: !scrollingUp, - child: const SmoothBackButton(), + child: const SmoothBackButton(iconColor: Colors.white), ), ), ) diff --git a/packages/smooth_app/lib/pages/product/product_image_gallery_view.dart b/packages/smooth_app/lib/pages/product/product_image_gallery_view.dart index 1acfaee64f8..971124b7f47 100644 --- a/packages/smooth_app/lib/pages/product/product_image_gallery_view.dart +++ b/packages/smooth_app/lib/pages/product/product_image_gallery_view.dart @@ -80,7 +80,6 @@ class _ProductImageGalleryViewState extends State { allProductImagesData, allProductImagesData.map(_provideImage), ); - return SmoothScaffold( appBar: SmoothAppBar( title: widget.product.productName != null