π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Combine nested Transform widgets into single Matrix4 in memory lane cards
laurenspriem783b28e6020e
diff --git a/mobile/apps/photos/lib/ui/viewer/people/memory_lane_page.dart b/mobile/apps/photos/lib/ui/viewer/people/memory_lane_page.dartindex d0b6f95ef7..94f3577080 100644--- a/mobile/apps/photos/lib/ui/viewer/people/memory_lane_page.dart+++ b/mobile/apps/photos/lib/ui/viewer/people/memory_lane_page.dart@@ -1323,25 +1323,24 @@ class _MemoryLaneCard extends StatelessWidget {),);+ final transform = Matrix4.identity()+ ..translate(0.0, yOffset)+ ..rotateZ(rotation)+ ..scale(scale, scale);+return Positioned.fill(child: IgnorePointer(child: Opacity(opacity: opacity,- child: Transform.translate(- offset: Offset(0, yOffset),- child: Transform.rotate(- angle: rotation,- child: Transform.scale(- scale: scale,- alignment: Alignment.center,- child: DecoratedBox(- decoration: BoxDecoration(- borderRadius: BorderRadius.circular(_cardRadius),- boxShadow: cardShadow,- ),- child: cardContent,- ),+ child: Transform(+ alignment: Alignment.center,+ transform: transform,+ child: DecoratedBox(+ decoration: BoxDecoration(+ borderRadius: BorderRadius.circular(_cardRadius),+ boxShadow: cardShadow,),+ child: cardContent,),),),