sell ui changes

This commit is contained in:
NATHANIEL ENDICK
2023-02-26 15:34:27 -05:00
parent c347b6bd6d
commit a19c4e5877

View File

@@ -237,27 +237,30 @@ class _SellScreenState extends State<SellScreen> {
), ),
], ],
), ),
ElevatedButton( ),
onPressed: () { Expanded(
List<String> locations = []; child: Center(
User? user = auth.currentUser; child: Container(
values.forEach((key, value) { child: ElevatedButton(
if (value == true) locations.add(key); onPressed: () {
}); List<String> locations = [];
if (user != null) { User? user = auth.currentUser;
Seller seller = Seller( values.forEach((key, value) {
user.displayName, if (value == true) locations.add(key);
user.uid, });
locations, if (user != null) {
TimeRange(Timestamp.fromDate(startTimeTime), Seller seller = Seller(
Timestamp.fromDate(endTimeTime)), user.displayName,
double.parse(priceController.text)); user.uid,
addSeller(seller); locations,
} TimeRange(Timestamp.fromDate(startTimeTime),
}, Timestamp.fromDate(endTimeTime)),
style: ButtonStyle( double.parse(priceController.text));
backgroundColor: addSeller(seller);
MaterialStateColor.resolveWith((states) => Colors.blue), }
},
child: const Text('Submit Sell Request'),
),
), ),
), ),
), ),