This commit is contained in:
Felipe
2024-01-02 18:11:05 -05:00
parent aa0d17ed18
commit d9a62ce404
+30 -8
View File
@@ -145,16 +145,21 @@ class _CalendarScreenState extends State<CalendarScreen> {
), ),
), ),
SizedBox( SizedBox(
width: double.infinity, width: double.infinity,
child: Padding( child: Padding(
padding: padding: const EdgeInsets.symmetric(horizontal: 15, vertical: 8),
const EdgeInsets.symmetric(horizontal: 15, vertical: 8), child: Text(DateFormat('dd MMMM yyyy', 'es').format(today),
child: Text(DateFormat('dd MMMM yyyy', 'es').format(today)), style: const TextStyle(
)), color: Colors.black,
fontSize: 16,
fontWeight: FontWeight.w600,
)),
),
),
const Divider( const Divider(
height: 0, height: 0,
), ),
_eventList() Expanded(child: SingleChildScrollView(child: _eventList()))
], ],
), ),
floatingActionButton: FloatingActionButton( floatingActionButton: FloatingActionButton(
@@ -365,6 +370,7 @@ class _CalendarScreenState extends State<CalendarScreen> {
LoadingItemList(useCircleAvatar: false), LoadingItemList(useCircleAvatar: false),
LoadingItemList(useCircleAvatar: false), LoadingItemList(useCircleAvatar: false),
LoadingItemList(useCircleAvatar: false), LoadingItemList(useCircleAvatar: false),
LoadingItemList(useCircleAvatar: false),
], ],
); );
} }
@@ -385,7 +391,23 @@ class _CalendarScreenState extends State<CalendarScreen> {
} }
if (eventos.isEmpty) { if (eventos.isEmpty) {
return const Center(child: Text('No tienes citas')); return const Padding(
padding: EdgeInsets.only(top: 30),
child: Center(
child: Text(
'No tienes citas',
style: TextStyle(
color: Colors.black,
fontSize:
18, // Tamaño de fuente ajustado según tus preferencias
fontWeight:
FontWeight.w500, // Puedes ajustar el peso de la fuente
fontStyle: FontStyle.italic, // Puedes agregar estilo italic
// Otros estilos según tus preferencias
),
),
),
);
} }
return Column( return Column(
children: [ children: [