feet/lib/widgets/centered_page_hint.dart

24 lines
586 B
Dart
Raw Permalink Normal View History

2023-01-01 01:01:50 +00:00
import 'package:flutter/material.dart';
class CenteredPageHint extends StatelessWidget {
final IconData icon;
final String text;
const CenteredPageHint({super.key, required this.icon, required this.text});
@override
Widget build(BuildContext context) {
return Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
padding: const EdgeInsets.all(12.0),
child: Icon(icon, size: 48),
),
Text(text, textAlign: TextAlign.center),
2023-01-01 01:01:50 +00:00
],
),
);
}
}