ente/lib/ui/viewer/search/tab_empty_state.dart

51 lines
1.8 KiB
Dart
Raw Normal View History

2023-02-24 03:53:00 +00:00
import "package:flutter/material.dart";
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: [
Text("Fast, on-device search", style: textStyle.h3Bold),
const SizedBox(height: 24),
const EmptyStateItemWidget("Photo dates, descriptions"),
const SizedBox(height: 12),
const EmptyStateItemWidget("Albums, file names, and types"),
const SizedBox(height: 12),
const EmptyStateItemWidget("Location"),
const SizedBox(height: 12),
const EmptyStateItemWidget("Coming soon: Photo contents, faces"),
const SizedBox(height: 32),
ButtonWidget(
buttonType: ButtonType.trailingIconPrimary,
labelText: "Add your photos now",
icon: Icons.arrow_forward_outlined,
onTap: () async {
routeToPage(
context,
const BackupFolderSelectionPage(
buttonText: "Backup",
),
);
},
2023-09-28 04:37:55 +00:00
),
2023-02-24 10:47:16 +00:00
],
),
2023-02-24 03:53:00 +00:00
),
);
}
}