ente/lib/ui/components/empty_state_item_widget.dart

35 lines
955 B
Dart
Raw Normal View History

2023-02-14 09:00:02 +00:00
import "package:flutter/material.dart";
import "package:photos/theme/ente_theme.dart";
2023-02-20 08:47:10 +00:00
///https://www.figma.com/file/SYtMyLBs5SAOkTbfMMzhqt/ente-Visual-Design?node-id=11379%3A67490&t=VI5KulbW3HMM5MVz-4
2023-02-14 09:00:02 +00:00
class EmptyStateItemWidget extends StatelessWidget {
final String textContent;
const EmptyStateItemWidget(this.textContent, {super.key});
@override
Widget build(BuildContext context) {
final colorScheme = getEnteColorScheme(context);
final textTheme = getEnteTextTheme(context);
return Row(
2023-02-14 09:48:28 +00:00
crossAxisAlignment: CrossAxisAlignment.start,
2023-02-14 09:00:02 +00:00
children: [
Icon(
Icons.check_outlined,
size: 17,
color: colorScheme.strokeFaint,
),
const SizedBox(width: 6),
2023-02-14 09:48:28 +00:00
Flexible(
child: Text(
textContent,
style: textTheme.small.copyWith(
color: colorScheme.textFaint,
),
2023-02-14 09:00:02 +00:00
),
),
],
);
}
}