From 26f1d5f560d69ee3b82395f57cfd957a2301ded2 Mon Sep 17 00:00:00 2001 From: Josh Patra Date: Sun, 26 Feb 2023 13:58:50 -0500 Subject: [PATCH] child fix --- lib/sell.dart | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/lib/sell.dart b/lib/sell.dart index 741d158..8c04935 100644 --- a/lib/sell.dart +++ b/lib/sell.dart @@ -46,10 +46,7 @@ class _SellScreenState extends State { resizeToAvoidBottomInset: true, body: Padding( padding: const EdgeInsets.fromLTRB(0, 8, 0, 0), - child: - Column(mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ - child: - Column(mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ + child: Column(mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ Row( children: [ Expanded( @@ -119,9 +116,7 @@ class _SellScreenState extends State { children: [ ElevatedButton( onPressed: () async { - DatePicker.showDateTimePicker(context, - showTitleActions: true, - minTime: DateTime.now(), onChanged: (date) { + DatePicker.showDateTimePicker(context, showTitleActions: true, minTime: DateTime.now(), onChanged: (date) { print('change $date'); }, onConfirm: (date) { setState(() { @@ -145,9 +140,7 @@ class _SellScreenState extends State { ), ElevatedButton( onPressed: () async { - DatePicker.showDateTimePicker(context, - showTitleActions: true, - minTime: DateTime.now(), onChanged: (date) { + DatePicker.showDateTimePicker(context, showTitleActions: true, minTime: DateTime.now(), onChanged: (date) { print('change $date'); }, onConfirm: (date) { setState(() { @@ -200,19 +193,12 @@ class _SellScreenState extends State { if (value == true) locations.add(key); }); if (user != null) { - Seller seller = Seller( - user.displayName, - user.uid, - locations, - TimeRange(Timestamp.fromDate(startTimeTime), - Timestamp.fromDate(endTimeTime)), - double.parse(priceController.text)); + Seller seller = Seller(user.displayName, user.uid, locations, TimeRange(Timestamp.fromDate(startTimeTime), Timestamp.fromDate(endTimeTime)), double.parse(priceController.text)); addSeller(seller); } }, style: ButtonStyle( - backgroundColor: - MaterialStateColor.resolveWith((states) => Colors.blue), + backgroundColor: MaterialStateColor.resolveWith((states) => Colors.blue), ), child: const Text('Submit Sell Request'), ),