2023-02-24 03:53:00 +00:00
|
|
|
import "package:flutter/material.dart";
|
|
|
|
import "package:photos/theme/ente_theme.dart";
|
|
|
|
import "package:photos/ui/backup_folder_selection_page.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";
|
|
|
|
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-02-24 03:53:00 +00:00
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|