No Description

view_event.dart 759B

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