Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Show ML progress above the People widget illustration

r4khuld8d565626d6a
diff --git a/mobile/apps/photos/lib/ui/settings/widgets/people_widget_settings.dart b/mobile/apps/photos/lib/ui/settings/widgets/people_widget_settings.dart
index ddb73b9f19..e9f8d68f6c 100644
--- a/mobile/apps/photos/lib/ui/settings/widgets/people_widget_settings.dart
+++ b/mobile/apps/photos/lib/ui/settings/widgets/people_widget_settings.dart
@@ -97,29 +97,27 @@ class _PeopleWidgetSettingsState extends State<PeopleWidgetSettings> {
? context.strings.peopleWidgetDesc
: context.strings.addPeopleWidgetPrompt,
slivers: <Widget>[
- if (!hasInstalledAny) ...[
+ if (!hasInstalledAny)
SliverToBoxAdapter(
- child: Padding(
- padding: const EdgeInsets.symmetric(horizontal: 32.0),
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- crossAxisAlignment: CrossAxisAlignment.center,
- children: [
- SizedBox(
- height: MediaQuery.sizeOf(context).height * 0.5 - 200,
- ),
- Image.asset("assets/people-widget-static.png", height: 160),
- ],
- ),
- ),
- ),
- const SliverToBoxAdapter(
- child: Padding(
- padding: EdgeInsets.fromLTRB(16, 24, 16, 0),
- child: MLProgressBanner(),
+ child: Column(
+ children: [
+ Stack(
+ children: [
+ SizedBox(
+ width: double.infinity,
+ height: MediaQuery.sizeOf(context).height * 0.5 - 200,
+ ),
+ const Padding(
+ padding: EdgeInsets.symmetric(horizontal: 16),
+ child: MLProgressBanner(),
+ ),
+ ],
+ ),
+ Image.asset("assets/people-widget-static.png", height: 160),
+ ],
),
- ),
- ] else ...[
+ )
+ else ...[
const SliverToBoxAdapter(
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 16),