Actually starting to look pretty good!?
This commit is contained in:
parent
26f688cfe9
commit
811313dc2c
@ -22,65 +22,39 @@ class MainApp extends StatelessWidget {
|
|||||||
|
|
||||||
return const MaterialApp(
|
return const MaterialApp(
|
||||||
home: Scaffold(
|
home: Scaffold(
|
||||||
body: Column(mainAxisSize: MainAxisSize.min, children: [
|
body: Center(
|
||||||
Text('Input an expense below!'),
|
child: Column(mainAxisSize: MainAxisSize.min, spacing: 10, children: [
|
||||||
Row(
|
Text('Input an expense below!'),
|
||||||
mainAxisSize: MainAxisSize.min,
|
SizedBox(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
|
||||||
children: [
|
|
||||||
Text("Name: "),
|
|
||||||
SizedBox(
|
|
||||||
width: 400,
|
|
||||||
height: 50,
|
|
||||||
child: TextField(
|
|
||||||
keyboardType: TextInputType.text,
|
|
||||||
)),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
Row(
|
|
||||||
mainAxisSize: MainAxisSize.min,
|
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
|
||||||
children: [
|
|
||||||
Text("Cost: "),
|
|
||||||
SizedBox(
|
|
||||||
width: 400,
|
width: 400,
|
||||||
height: 50,
|
height: 50,
|
||||||
child: TextField(
|
child: TextField(
|
||||||
keyboardType: TextInputType.numberWithOptions(decimal: true),
|
keyboardType: TextInputType.text,
|
||||||
),
|
decoration: InputDecoration(hintText: "Expense Name"),
|
||||||
|
)),
|
||||||
|
SizedBox(
|
||||||
|
width: 400,
|
||||||
|
height: 50,
|
||||||
|
child: TextField(
|
||||||
|
keyboardType: TextInputType.numberWithOptions(decimal: true),
|
||||||
|
decoration: InputDecoration(hintText: "Expense Cost"),
|
||||||
),
|
),
|
||||||
],
|
),
|
||||||
),
|
DropdownMenu(
|
||||||
Row(
|
dropdownMenuEntries: recurranceValues,
|
||||||
mainAxisSize: MainAxisSize.min,
|
hintText: "Recurrance",
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
width: 400,
|
||||||
children: [
|
menuHeight: 50,
|
||||||
Text("Recurrance: "),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 100,
|
width: 400,
|
||||||
height: 50,
|
height: 50,
|
||||||
child: DropdownMenu(dropdownMenuEntries: recurranceValues)),
|
child: TextField(
|
||||||
],
|
keyboardType: TextInputType.text,
|
||||||
),
|
decoration: InputDecoration(hintText: "Expense Description"),
|
||||||
Row(
|
)),
|
||||||
mainAxisSize: MainAxisSize.min,
|
]),
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
),
|
||||||
children: [
|
|
||||||
Text("Description: "),
|
|
||||||
SizedBox(
|
|
||||||
width: 400,
|
|
||||||
height: 50,
|
|
||||||
child: TextField(
|
|
||||||
keyboardType: TextInputType.text,
|
|
||||||
)),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
|
|
||||||
|
|
||||||
SizedBox()
|
|
||||||
|
|
||||||
|
|
||||||
]),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user