Newer
Older
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class Overview extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Mobile Event Log')),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: <Widget>[
ElevatedButton(
child: const Text('Add Event'),
onPressed: () {
Navigator.pushNamed(context, '/second');
},
),
ElevatedButton(
child: const Text('View Added Events'),
onPressed: () {
Navigator.pushNamed(context, '/third');
},
),
ElevatedButton(
child: const Text('Configuration'),
onPressed: () {
Navigator.pushNamed(context, '/forth');
},
),
],
)),
);
}
}