ente/lib/ui/viewer/gallery/empty_state.dart

29 lines
716 B
Dart
Raw Normal View History

import 'package:flutter/material.dart';
import 'package:photos/ente_theme_data.dart';
2023-04-07 05:27:06 +00:00
import "package:photos/generated/l10n.dart";
class EmptyState extends StatelessWidget {
2023-04-07 05:27:06 +00:00
final String? text;
2023-04-07 05:27:06 +00:00
const EmptyState({Key? key, this.text}) : super(key: key);
@override
Widget build(BuildContext context) {
return Center(
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Text(
2023-04-07 05:27:06 +00:00
text ?? S.of(context).nothingToSeeHere,
2022-11-02 06:07:05 +00:00
textAlign: TextAlign.center,
style: TextStyle(
color: Theme.of(context)
.colorScheme
.defaultTextColor
.withOpacity(0.35),
),
),
),
);
}
}