Format dialog a little better.

This commit is contained in:
Hyperling 2025-02-05 03:39:12 -07:00
parent bcae40e0e2
commit 7ead0e5ebb

View File

@ -180,10 +180,8 @@ class _ExpenseInputDialogState extends State<ExpenseInputDialog> {
];
return AlertDialog(
title: Text("Add New Expense"),
content: Center(
child: Column(mainAxisSize: MainAxisSize.min, spacing: 10, children: [
Text('New Expense'),
title: Center(child: Text("Add New Expense")),
content: Column(mainAxisSize: MainAxisSize.min, spacing: 10, children: [
SizedBox(
width: inputWidth,
height: inputHeight,
@ -201,8 +199,8 @@ class _ExpenseInputDialogState extends State<ExpenseInputDialog> {
height: inputHeight,
child: TextField(
keyboardType: TextInputType.numberWithOptions(decimal: true),
decoration: InputDecoration(
labelText: "Cost", hintText: "Example: 10.00"),
decoration:
InputDecoration(labelText: "Cost", hintText: "Example: 10.00"),
),
),
DropdownMenu(
@ -221,7 +219,6 @@ class _ExpenseInputDialogState extends State<ExpenseInputDialog> {
hintText: "Example: 1GB data with unlimited talk & text."),
)),
]),
),
actions: [
SizedBox(
width: inputWidth,