|
|
|
|
@ -48,17 +48,17 @@ import 'package:test_sa/views/widgets/images/multi_image_picker.dart';
|
|
|
|
|
import '../../../../../../new_views/common_widgets/default_app_bar.dart';
|
|
|
|
|
import '../../../models/new_models/department.dart';
|
|
|
|
|
|
|
|
|
|
class CreateLoanRequestView extends StatefulWidget {
|
|
|
|
|
class CreateLoanRequestPage extends StatefulWidget {
|
|
|
|
|
static const String id = "/create-loan";
|
|
|
|
|
int? workOrderId;
|
|
|
|
|
|
|
|
|
|
CreateLoanRequestView({Key? key, this.workOrderId}) : super(key: key);
|
|
|
|
|
CreateLoanRequestPage({Key? key, this.workOrderId}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
_CreateLoanRequestViewState createState() => _CreateLoanRequestViewState();
|
|
|
|
|
_CreateLoanRequestPageState createState() => _CreateLoanRequestPageState();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class _CreateLoanRequestViewState extends State<CreateLoanRequestView> with TickerProviderStateMixin {
|
|
|
|
|
class _CreateLoanRequestPageState extends State<CreateLoanRequestPage> with TickerProviderStateMixin {
|
|
|
|
|
final List<GenericAttachmentModel> attachments = [];
|
|
|
|
|
final GlobalKey<FormState> _formKey = GlobalKey<FormState>();
|
|
|
|
|
final GlobalKey<ScaffoldState> _scaffoldKey = GlobalKey<ScaffoldState>();
|
|
|
|
|
@ -475,6 +475,7 @@ class _CreateLoanRequestViewState extends State<CreateLoanRequestView> with Tick
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future<void> _submit() async {
|
|
|
|
|
FocusScope.of(context).unfocus();
|
|
|
|
|
if (isBackUpRequest && device == null) {
|
|
|
|
|
"Please scan or pick asset".showToast;
|
|
|
|
|
return;
|