[mob][photos] Don't show naming banner on suggestions

This commit is contained in:
laurenspriem 2024-05-02 17:22:46 +05:30
parent 4bafdf8922
commit 7e60e8532f
2 changed files with 49 additions and 36 deletions

View file

@ -31,6 +31,7 @@ class ClusterPage extends StatefulWidget {
final int clusterID;
final PersonEntity? personID;
final String appendTitle;
final bool showNamingBanner;
static const GalleryType appBarType = GalleryType.cluster;
static const GalleryType overlayType = GalleryType.cluster;
@ -42,6 +43,7 @@ class ClusterPage extends StatefulWidget {
required this.clusterID,
this.personID,
this.appendTitle = "",
this.showNamingBanner = true,
Key? key,
}) : super(key: key);
@ -140,11 +142,16 @@ class _ClusterPageState extends State<ClusterPage> {
),
body: Column(
children: [
const SizedBox(height: 12),
RepaintBoundary(
widget.showNamingBanner
? const SizedBox(height: 12)
: const SizedBox.shrink(),
widget.showNamingBanner
? RepaintBoundary(
child: Padding(
padding:
const EdgeInsets.symmetric(vertical: 8.0, horizontal: 8.0),
padding: const EdgeInsets.symmetric(
vertical: 8.0,
horizontal: 8.0,
),
child: NotificationWidget(
startIcon: Icons.person_add_outlined,
actionIcon: Icons.add_outlined,
@ -169,13 +176,18 @@ class _ClusterPageState extends State<ClusterPage> {
}
},
),
).animate(onPlay: (controller) => controller.repeat()).shimmer(
)
.animate(onPlay: (controller) => controller.repeat())
.shimmer(
duration: 1000.ms,
delay: 3200.ms,
size: 0.6,
),
),
const SizedBox(height: 12),
)
: const SizedBox.shrink(),
widget.showNamingBanner
? const SizedBox(height: 12)
: const SizedBox.shrink(),
Expanded(
child: Stack(
alignment: Alignment.bottomCenter,

View file

@ -104,6 +104,7 @@ class _PersonClustersState extends State<PersonReviewClusterSuggestion> {
sortedFiles,
personID: widget.person,
clusterID: clusterID,
showNamingBanner: false,
),
),
);