fixed const
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:prosappco/src/components/pop_appbar.dart';
|
||||
import 'package:prosappco/src/models/event_model.dart';
|
||||
import 'package:table_calendar/table_calendar.dart';
|
||||
|
||||
class CalendarScreen extends StatefulWidget {
|
||||
@@ -10,6 +11,7 @@ class CalendarScreen extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _CalendarScreenState extends State<CalendarScreen> {
|
||||
EventoService eventoService = EventoService();
|
||||
CalendarFormat _calendarFormat = CalendarFormat.month;
|
||||
DateTime today = DateTime.now();
|
||||
|
||||
@@ -65,11 +67,15 @@ class _CalendarScreenState extends State<CalendarScreen> {
|
||||
},
|
||||
),
|
||||
),
|
||||
Text(today.toString())
|
||||
],
|
||||
),
|
||||
),
|
||||
floatingActionButton: FloatingActionButton(
|
||||
onPressed: () {},
|
||||
onPressed: () async {
|
||||
await eventoService.createEvent(
|
||||
'Hola', 'Saludarnois', today.toString());
|
||||
},
|
||||
child: const Icon(Icons.add),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user