43 lines
1.2 KiB
Dart
43 lines
1.2 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
/// Pantalla temporal para rutas pendientes de implementar.
|
|
class PlaceholderScreen extends StatelessWidget {
|
|
final String title;
|
|
final String route;
|
|
|
|
const PlaceholderScreen({
|
|
super.key,
|
|
required this.title,
|
|
required this.route,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final cs = Theme.of(context).colorScheme;
|
|
final tt = Theme.of(context).textTheme;
|
|
|
|
return Padding(
|
|
padding: const EdgeInsets.all(32),
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Text(title, style: tt.headlineMedium?.copyWith(fontWeight: FontWeight.bold)),
|
|
const SizedBox(height: 32),
|
|
Center(
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: [
|
|
Icon(Icons.construction_outlined, size: 64, color: cs.outline),
|
|
const SizedBox(height: 16),
|
|
Text(
|
|
'Pendiente de implementar',
|
|
style: tt.bodyMedium?.copyWith(color: cs.onSurfaceVariant),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|