No Description

view_event.dart 818B

123456789101112131415161718192021222324252627282930
  1. import 'package:flutter/material.dart';
  2. import 'package:fast_med_flutter/model/event.dart';
  3. // Implementacion para ver recordatorios de citas creadas
  4. class EventDetailsPage extends StatelessWidget {
  5. final EventModel event;
  6. const EventDetailsPage({Key key, this.event}) : super(key: key);
  7. @override
  8. Widget build(BuildContext context){
  9. return Scaffold(
  10. appBar: AppBar(
  11. title: Text('Note details'),
  12. ),
  13. body: SingleChildScrollView(
  14. padding: const EdgeInsets.all(16.0),
  15. child: Column(
  16. crossAxisAlignment: CrossAxisAlignment.start,
  17. children: <Widget>[
  18. Text(event.title, style: Theme.of(context).textTheme.display1,),
  19. SizedBox(height: 20.0),
  20. Text(event.description)
  21. ],
  22. ),
  23. ),
  24. );
  25. }
  26. }