removed all add functionalities
This commit is contained in:
@@ -3,7 +3,6 @@ import 'package:ftc_mobile_app/ftc_mobile_app.dart';
|
||||
import 'package:ftc_mobile_app/models/clients/documents_list_model.dart';
|
||||
import 'package:ftc_mobile_app/models/profileData/user_data.dart';
|
||||
import 'package:ftc_mobile_app/view/custom_widgets/custom_app_bar_with_action.dart';
|
||||
import 'package:ftc_mobile_app/view/custom_widgets/edit_icon.dart';
|
||||
import 'package:ftc_mobile_app/view/screens/clientsListing/widgets/search_bar_widget.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
@@ -53,19 +52,19 @@ class _DocumentsListScreenState extends State<DocumentsListScreen> {
|
||||
}
|
||||
|
||||
AppBar _appBar(BuildContext context) {
|
||||
return CustomAppBarWithAction(
|
||||
return CustomAppBarTitleOnly(
|
||||
context,
|
||||
titleText: "Documents",
|
||||
actionText: '+ Add New',
|
||||
onActionTap: () async {
|
||||
dynamic response = await Navigator.pushNamed(
|
||||
context, CustomRouteNames.kAddNewDocumentScreenRoute,
|
||||
arguments: controller.serviceUser.value);
|
||||
if (response is DocumentModel) {
|
||||
controller.documentsList.insert(0, response);
|
||||
controller.documentsList.refresh();
|
||||
}
|
||||
},
|
||||
// actionText: '+ Add New',
|
||||
// onActionTap: () async {
|
||||
// dynamic response = await Navigator.pushNamed(
|
||||
// context, CustomRouteNames.kAddNewDocumentScreenRoute,
|
||||
// arguments: controller.serviceUser.value);
|
||||
// if (response is DocumentModel) {
|
||||
// controller.documentsList.insert(0, response);
|
||||
// controller.documentsList.refresh();
|
||||
// }
|
||||
// },
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user