feat: Add navigation and data entry page
This commit is contained in:
commit
d1b97dc621
68 changed files with 1769 additions and 0 deletions
87
lib/data_entry/view.dart
Normal file
87
lib/data_entry/view.dart
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
|
||||
class DataEntryPage extends StatelessWidget {
|
||||
const DataEntryPage({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Column(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: <Widget>[
|
||||
SizedBox.fromSize(size: const Size.fromHeight(32)),
|
||||
Expanded(
|
||||
flex: 2,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.fromLTRB(32, 0, 32, 16),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
Expanded(
|
||||
child: ElevatedButton(
|
||||
onPressed: () {},
|
||||
child: const Icon(Icons.account_balance),
|
||||
),
|
||||
),
|
||||
SizedBox.fromSize(size: const Size.fromWidth(32)),
|
||||
Expanded(
|
||||
child: ElevatedButton(
|
||||
onPressed: () {},
|
||||
child: const Icon(Icons.add_a_photo),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
flex: 2,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.fromLTRB(32, 16, 32, 0),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
Expanded(
|
||||
flex: 10,
|
||||
child: ElevatedButton(
|
||||
onPressed: () {},
|
||||
child: const Icon(Icons.account_balance),
|
||||
),
|
||||
),
|
||||
SizedBox.fromSize(size: const Size.fromWidth(32)),
|
||||
Expanded(
|
||||
flex: 10,
|
||||
child: ElevatedButton(
|
||||
onPressed: () {},
|
||||
child: const Icon(Icons.add_a_photo),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: [
|
||||
Text(
|
||||
getCurrentDate(),
|
||||
style: const TextStyle(
|
||||
fontSize: 54,
|
||||
fontWeight: FontWeight.w200,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
]);
|
||||
}
|
||||
|
||||
String getCurrentDate() {
|
||||
DateTime now = DateTime.now();
|
||||
DateTime date = DateTime(now.year, now.month, now.day);
|
||||
return DateFormat.yMd('de_CH').format(date);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue