Api integrated of Sales Task
This commit is contained in:
parent
03813b5e83
commit
59b758a7b5
@ -150,7 +150,8 @@ class CollectKycProvider extends ChangeNotifier {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
const SnackBar(content: Text('Trade Name is required')),
|
||||
);
|
||||
} else if (nameController.text.trim().isEmpty) {
|
||||
} else
|
||||
if (nameController.text.trim().isEmpty) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
const SnackBar(content: Text('Name is required')),
|
||||
);
|
||||
@ -318,6 +319,7 @@ class CollectKycProvider extends ChangeNotifier {
|
||||
|
||||
String? inventoryId;
|
||||
void setId(String id) {
|
||||
print('inventory id: $id');
|
||||
inventoryId = id;
|
||||
notifyListeners();
|
||||
}
|
||||
|
@ -185,12 +185,13 @@ class _DailyTasksScreenState extends State<DailyTasksScreen> {
|
||||
onTap: _selectedTabIndex == 2
|
||||
? null // Disable click when on the "COMPLETED" tab
|
||||
: () {
|
||||
print('Task: ${tasksList.toJson()}');
|
||||
if (tasksList.task == 'Collect KYC') {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) =>
|
||||
CollectKycScreen(id: tasksList.taskId ?? '')));
|
||||
CollectKycScreen(id: tasksList.sId ?? '')));
|
||||
} else if (tasksList.task == 'REUPLOAD') {
|
||||
Navigator.push(
|
||||
context,
|
||||
|
@ -46,6 +46,17 @@ class RetailerDetailsScreenState extends State<RetailerDetailsScreen> {
|
||||
Column(
|
||||
children: [
|
||||
const SizedBox(height: 15),
|
||||
CommonTextFormField(
|
||||
title: 'Trade Name',
|
||||
fillColor: Colors.white,
|
||||
validator: (String? value) {
|
||||
if (value!.isEmpty) {
|
||||
return 'Trade Name cannot be empty';
|
||||
}
|
||||
return null;
|
||||
},
|
||||
controller: value.tradeNameController),
|
||||
const SizedBox(height: 15),
|
||||
CommonTextFormField(
|
||||
title: 'Name',
|
||||
fillColor: Colors.white,
|
||||
|
Loading…
Reference in New Issue
Block a user