Skip to content

armgit / ente

Public Imported from GitHub
0

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

Add attribution for aves

ashilkn21b930d61700
diff --git a/mobile/apps/photos/lib/models/gallery/fixed_extent_grid_row.dart b/mobile/apps/photos/lib/models/gallery/fixed_extent_grid_row.dart
index 69cf23b3fb..e84af644ec 100644
--- a/mobile/apps/photos/lib/models/gallery/fixed_extent_grid_row.dart
+++ b/mobile/apps/photos/lib/models/gallery/fixed_extent_grid_row.dart
@@ -1,6 +1,10 @@
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
+// Based on code from https://github.com/deckerst/aves
+// Copyright (c) 2020-2023 Thibault Deckers and contributors
+// Licensed under BSD-3-Clause License
+
class FixedExtentGridRow extends MultiChildRenderObjectWidget {
final double width, height, spacing;
final TextDirection textDirection;
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/component/sectioned_sliver_list.dart b/mobile/apps/photos/lib/ui/viewer/gallery/component/sectioned_sliver_list.dart
index ac54db5913..cb71990f3a 100644
--- a/mobile/apps/photos/lib/ui/viewer/gallery/component/sectioned_sliver_list.dart
+++ b/mobile/apps/photos/lib/ui/viewer/gallery/component/sectioned_sliver_list.dart
@@ -7,6 +7,10 @@ import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
import "package:photos/models/gallery/fixed_extent_section_layout.dart";
+// Based on code from https://github.com/deckerst/aves
+// Copyright (c) 2020-2023 Thibault Deckers and contributors
+// Licensed under BSD-3-Clause License
+
// Using a Single SliverVariedExtentList or Using a combination where there are
// multiple sliver delegate builders in a CustomScrollView doesn't scale.
@@ -22,8 +26,6 @@ import "package:photos/models/gallery/fixed_extent_section_layout.dart";
// https://github.com/flutter/flutter/issues/168442
// https://github.com/flutter/flutter/issues/95028
-// Based on code from https://github.com/deckerst/aves
-
// A custom implementation of SliverMultiBoxAdaptorWidget
// adapted from SliverFixedExtentBoxAdaptor. Optimizations in layout solves
// the deep scrolling issue.