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