mirror of
https://github.com/SoPat712/RUSwipeShare.git
synced 2025-08-21 10:58:47 -04:00
sell ui changes
This commit is contained in:
@@ -237,27 +237,30 @@ class _SellScreenState extends State<SellScreen> {
|
||||
),
|
||||
],
|
||||
),
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
List<String> locations = [];
|
||||
User? user = auth.currentUser;
|
||||
values.forEach((key, value) {
|
||||
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));
|
||||
addSeller(seller);
|
||||
}
|
||||
},
|
||||
style: ButtonStyle(
|
||||
backgroundColor:
|
||||
MaterialStateColor.resolveWith((states) => Colors.blue),
|
||||
),
|
||||
Expanded(
|
||||
child: Center(
|
||||
child: Container(
|
||||
child: ElevatedButton(
|
||||
onPressed: () {
|
||||
List<String> locations = [];
|
||||
User? user = auth.currentUser;
|
||||
values.forEach((key, value) {
|
||||
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));
|
||||
addSeller(seller);
|
||||
}
|
||||
},
|
||||
child: const Text('Submit Sell Request'),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
Reference in New Issue
Block a user