Add buttons and fake items.
This commit is contained in:
parent
43dd151cb4
commit
d722172cb3
@ -123,7 +123,19 @@ class ExpensePage extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ExpenseInputForm();
|
||||
return ListView(
|
||||
children: [
|
||||
ExpenseInputForm(),
|
||||
ListTile(
|
||||
title: Text("Fake Item 1"),
|
||||
subtitle: Text("30.00 / month"),
|
||||
),
|
||||
ListTile(
|
||||
title: Text("Fake Item 2"),
|
||||
subtitle: Text("180.00 / year"),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@ -139,7 +151,7 @@ class ExpenseInputForm extends StatefulWidget {
|
||||
class _ExpenseInputFormState extends State<ExpenseInputForm> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
const inputWidth = 400.0;
|
||||
const inputWidth = 300.0;
|
||||
const inputHeight = 50.0;
|
||||
|
||||
const recurrenceValues = <DropdownMenuEntry>[
|
||||
@ -189,6 +201,28 @@ class _ExpenseInputFormState extends State<ExpenseInputForm> {
|
||||
labelText: "Description",
|
||||
hintText: "Example: 1GB data with unlimited talk & text."),
|
||||
)),
|
||||
SizedBox(
|
||||
width: inputWidth,
|
||||
height: inputHeight,
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: [
|
||||
ElevatedButton.icon(
|
||||
onPressed: () {
|
||||
print("TODO: Clear fields!");
|
||||
},
|
||||
icon: Icon(Icons.cancel),
|
||||
label: Text('Cancel'),
|
||||
),
|
||||
ElevatedButton.icon(
|
||||
onPressed: () {
|
||||
print("TODO: Save expense!");
|
||||
},
|
||||
icon: Icon(Icons.save),
|
||||
label: Text('Submit'),
|
||||
),
|
||||
],
|
||||
))
|
||||
]),
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user