From 811313dc2c4427dc138fee3cf55d15792a14ca3e Mon Sep 17 00:00:00 2001 From: Hyperling Date: Thu, 30 Jan 2025 20:08:34 -0700 Subject: [PATCH] Actually starting to look pretty good!? --- lib/main.dart | 84 ++++++++++++++++++--------------------------------- 1 file changed, 29 insertions(+), 55 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index d13f9a6..91044dd 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -22,65 +22,39 @@ class MainApp extends StatelessWidget { return const MaterialApp( home: Scaffold( - body: Column(mainAxisSize: MainAxisSize.min, children: [ - Text('Input an expense below!'), - Row( - mainAxisSize: MainAxisSize.min, - 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( + body: Center( + child: Column(mainAxisSize: MainAxisSize.min, spacing: 10, children: [ + Text('Input an expense below!'), + SizedBox( width: 400, height: 50, 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"), ), - ], - ), - Row( - mainAxisSize: MainAxisSize.min, - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Text("Recurrance: "), - SizedBox( - width: 100, - height: 50, - child: DropdownMenu(dropdownMenuEntries: recurranceValues)), - ], - ), - Row( - mainAxisSize: MainAxisSize.min, - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Text("Description: "), - SizedBox( - width: 400, - height: 50, - child: TextField( - keyboardType: TextInputType.text, - )), - ], - ), - - - SizedBox() - - - ]), + ), + DropdownMenu( + dropdownMenuEntries: recurranceValues, + hintText: "Recurrance", + width: 400, + menuHeight: 50, + ), + SizedBox( + width: 400, + height: 50, + child: TextField( + keyboardType: TextInputType.text, + decoration: InputDecoration(hintText: "Expense Description"), + )), + ]), + ), ), ); }