2023-02-24 03:53:00 +00:00
|
|
|
import "package:flutter/material.dart";
|
2023-11-17 04:12:41 +00:00
|
|
|
import "package:photos/generated/l10n.dart";
|
2023-02-24 03:53:00 +00:00
|
|
|
import "package:photos/theme/ente_theme.dart";
|
2023-04-13 06:51:47 +00:00
|
|
|
import "package:photos/ui/components/buttons/button_widget.dart";
|
2023-02-24 03:53:00 +00:00
|
|
|
import "package:photos/ui/components/empty_state_item_widget.dart";
|
|
|
|
import "package:photos/ui/components/models/button_type.dart";
|
2023-09-28 04:37:55 +00:00
|
|
|
import "package:photos/ui/settings/backup/backup_folder_selection_page.dart";
|
2023-02-24 03:53:00 +00:00
|
|
|
import "package:photos/utils/navigation_util.dart";
|
|
|
|
|
|
|
|
class SearchTabEmptyState extends StatelessWidget {
|
|
|
|
const SearchTabEmptyState({super.key});
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
final textStyle = getEnteTextTheme(context);
|
2023-02-24 10:47:16 +00:00
|
|
|
return Center(
|
|
|
|
child: Padding(
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 24.0),
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
2023-11-17 04:12:41 +00:00
|
|
|
Text(S.of(context).searchHint1, style: textStyle.h3Bold),
|
2023-02-24 10:47:16 +00:00
|
|
|
const SizedBox(height: 24),
|
2023-11-17 04:12:41 +00:00
|
|
|
EmptyStateItemWidget(S.of(context).searchHint2),
|
2023-02-24 10:47:16 +00:00
|
|
|
const SizedBox(height: 12),
|
2023-11-17 04:12:41 +00:00
|
|
|
EmptyStateItemWidget(S.of(context).searchHint3),
|
2023-02-24 10:47:16 +00:00
|
|
|
const SizedBox(height: 12),
|
2023-11-17 04:12:41 +00:00
|
|
|
EmptyStateItemWidget(S.of(context).searchHint4),
|
2023-02-24 10:47:16 +00:00
|
|
|
const SizedBox(height: 12),
|
2023-11-17 04:12:41 +00:00
|
|
|
EmptyStateItemWidget(S.of(context).searchHint5),
|
2023-02-24 10:47:16 +00:00
|
|
|
const SizedBox(height: 32),
|
|
|
|
ButtonWidget(
|
|
|
|
buttonType: ButtonType.trailingIconPrimary,
|
2023-11-17 04:12:41 +00:00
|
|
|
labelText: S.of(context).addYourPhotosNow,
|
2023-02-24 10:47:16 +00:00
|
|
|
icon: Icons.arrow_forward_outlined,
|
|
|
|
onTap: () async {
|
|
|
|
routeToPage(
|
|
|
|
context,
|
2023-11-17 04:12:41 +00:00
|
|
|
BackupFolderSelectionPage(
|
|
|
|
buttonText: S.of(context).backup,
|
2023-02-24 10:47:16 +00:00
|
|
|
),
|
|
|
|
);
|
|
|
|
},
|
2023-09-28 04:37:55 +00:00
|
|
|
),
|
2023-02-24 10:47:16 +00:00
|
|
|
],
|
|
|
|
),
|
2023-02-24 03:53:00 +00:00
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|