Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix colored list tiles on Flutter 3.47

AmanRajSinghMourya372df3653a94
diff --git a/mobile/apps/photos/lib/ui/rituals/all_rituals_screen.dart b/mobile/apps/photos/lib/ui/rituals/all_rituals_screen.dart
index 9036654412..c9f2dbc496 100644
--- a/mobile/apps/photos/lib/ui/rituals/all_rituals_screen.dart
+++ b/mobile/apps/photos/lib/ui/rituals/all_rituals_screen.dart
@@ -372,11 +372,11 @@ class _RitualActionsSheet extends StatelessWidget {
return SafeArea(
child: Padding(
padding: const EdgeInsets.fromLTRB(16, 0, 16, 16),
- child: Container(
- decoration: BoxDecoration(
- color: colorScheme.backgroundElevated,
+ child: Material(
+ color: colorScheme.backgroundElevated,
+ shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20),
- border: Border.all(color: colorScheme.strokeFaint, width: 0.5),
+ side: BorderSide(color: colorScheme.strokeFaint, width: 0.5),
),
child: Column(
mainAxisSize: MainAxisSize.min,
diff --git a/mobile/apps/photos/lib/ui/viewer/date/edit_date_sheet.dart b/mobile/apps/photos/lib/ui/viewer/date/edit_date_sheet.dart
index 220869cd2a..6e239f0790 100644
--- a/mobile/apps/photos/lib/ui/viewer/date/edit_date_sheet.dart
+++ b/mobile/apps/photos/lib/ui/viewer/date/edit_date_sheet.dart
@@ -284,11 +284,11 @@ class DateAndTimeWidget extends StatelessWidget {
),
),
if (!singleFile) const SizedBox(height: 16),
- Container(
- decoration: BoxDecoration(
- color: colorScheme.backgroundElevated2,
- border: Border.all(color: colorScheme.strokeFaint, width: 0.5),
+ Material(
+ color: colorScheme.backgroundElevated2,
+ shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8),
+ side: BorderSide(color: colorScheme.strokeFaint, width: 0.5),
),
child: Column(
mainAxisSize: MainAxisSize.min,
@@ -418,11 +418,11 @@ class SelectDateOrShiftWidget extends StatelessWidget {
final colorScheme = getEnteColorScheme(context);
return Padding(
padding: const EdgeInsets.symmetric(vertical: 8),
- child: Container(
- decoration: BoxDecoration(
- color: colorScheme.backgroundElevated2,
- border: Border.all(color: colorScheme.strokeFaint, width: 0.5),
+ child: Material(
+ color: colorScheme.backgroundElevated2,
+ shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8),
+ side: BorderSide(color: colorScheme.strokeFaint, width: 0.5),
),
child: Column(
mainAxisSize: MainAxisSize.min,