creek
The AI Image Editor of 2030git clone https://github.com/maydayv7/creek
lib/ui/widgets/empty_state.dart (995B)
1import 'package:flutter/material.dart';
2import 'package:creekui/ui/styles/variables.dart';
3
4class EmptyState extends StatelessWidget {
5 final IconData icon;
6 final String title;
7 final String subtitle;
8
9 const EmptyState({
10 super.key,
11 required this.icon,
12 required this.title,
13 required this.subtitle,
14 });
15
16 @override
17 Widget build(BuildContext context) {
18 return Center(
19 child: Column(
20 mainAxisAlignment: MainAxisAlignment.center,
21 children: [
22 Icon(icon, size: 48, color: Variables.textDisabled),
23 const SizedBox(height: 16),
24 Text(
25 title,
26 style: Variables.bodyStyle.copyWith(
27 fontWeight: FontWeight.w600,
28 color: Variables.textPrimary,
29 ),
30 ),
31 const SizedBox(height: 8),
32 Text(
33 subtitle,
34 style: Variables.captionStyle,
35 textAlign: TextAlign.center,
36 ),
37 ],
38 ),
39 );
40 }
41}