Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Add shadow to home tab's app bar

ashilkn34612017081d
diff --git a/mobile/lib/ui/home/error_warning_header_widget.dart b/mobile/lib/ui/home/error_warning_header_widget.dart
index ffda3f4c42..b657db492f 100644
--- a/mobile/lib/ui/home/error_warning_header_widget.dart
+++ b/mobile/lib/ui/home/error_warning_header_widget.dart
@@ -7,7 +7,6 @@ import 'package:photos/events/notification_event.dart';
import 'package:photos/events/sync_status_update_event.dart';
import "package:photos/generated/l10n.dart";
import 'package:photos/services/user_remote_flag_service.dart';
-import "package:photos/theme/ente_theme.dart";
import 'package:photos/ui/account/verify_recovery_page.dart';
import 'package:photos/ui/components/notification_widget.dart';
import 'package:photos/ui/home/header_error_widget.dart';
@@ -67,12 +66,6 @@ class _ErrorWarningHeaderState extends State<ErrorWarningHeader> {
Widget build(BuildContext context) {
return Column(
children: [
- _showErrorBanner
- ? Divider(
- height: 8,
- color: getEnteColorScheme(context).strokeFaint,
- )
- : const SizedBox.shrink(),
_showErrorBanner
? HeaderErrorWidget(error: _syncError)
: const SizedBox.shrink(),
diff --git a/mobile/lib/ui/home/home_app_bar_widget.dart b/mobile/lib/ui/home/home_app_bar_widget.dart
index 0f535de5fe..60b512b7ea 100644
--- a/mobile/lib/ui/home/home_app_bar_widget.dart
+++ b/mobile/lib/ui/home/home_app_bar_widget.dart
@@ -76,7 +76,13 @@ class _HomeAppBarWidgetState extends State<HomeAppBarWidget> {
@override
AppBar build(BuildContext context) {
+ final colorScheme = getEnteColorScheme(context);
return AppBar(
+ backgroundColor: colorScheme.backgroundBase,
+ elevation: 4,
+ surfaceTintColor: Colors.transparent,
+ shadowColor: Colors.black.withOpacity(0.2),
+ clipBehavior: Clip.none,
centerTitle: true,
title: AnimatedSwitcher(
duration: const Duration(milliseconds: 500),