mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 17:26:18 +01:00
36 lines
768 B
Dart
36 lines
768 B
Dart
|
import 'package:flutter/material.dart';
|
||
|
import 'package:flutter/widgets.dart';
|
||
|
|
||
|
class EmptyListIndicator extends StatelessWidget {
|
||
|
const EmptyListIndicator({
|
||
|
Key? key,
|
||
|
required this.icon,
|
||
|
required this.text,
|
||
|
}) : super(key: key);
|
||
|
|
||
|
@override
|
||
|
build(BuildContext context) {
|
||
|
return Container(
|
||
|
alignment: Alignment.center,
|
||
|
padding: const EdgeInsets.symmetric(horizontal: 8),
|
||
|
child: Column(
|
||
|
mainAxisSize: MainAxisSize.min,
|
||
|
children: [
|
||
|
Icon(
|
||
|
icon,
|
||
|
size: 72,
|
||
|
),
|
||
|
const SizedBox(height: 8),
|
||
|
Text(
|
||
|
text,
|
||
|
style: const TextStyle(fontSize: 24),
|
||
|
),
|
||
|
],
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
|
||
|
final IconData icon;
|
||
|
final String text;
|
||
|
}
|