fix image remove and shipment creation bugs
This commit is contained in:
@@ -133,7 +133,7 @@ class Carton {
|
||||
|
||||
Map<String, dynamic> toMap() {
|
||||
List _cargoTypes = cargoTypes.map((c) => c.toMap()).toList();
|
||||
List _packages = packages.map((c) => c.toJson()).toList();
|
||||
List _packages = packages?.map((c) => c.toJson())?.toList();
|
||||
return {
|
||||
"id": id,
|
||||
'cargo_types': _cargoTypes,
|
||||
|
||||
@@ -4,7 +4,7 @@ import 'callbacks.dart';
|
||||
import 'display_image_source.dart';
|
||||
|
||||
class MultiImgController {
|
||||
List<String> imageUrls;
|
||||
List<String> imageUrls = [];
|
||||
List<DisplayImageSource> addedFiles = [];
|
||||
List<DisplayImageSource> removedFiles = [];
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@ import 'dart:io';
|
||||
|
||||
import 'package:cached_network_image/cached_network_image.dart';
|
||||
import 'package:fcs/helpers/theme.dart';
|
||||
import 'package:fcs/pages/widgets/bottom_up_page_route.dart';
|
||||
import 'package:fcs/pages/widgets/right_left_page_rout.dart';
|
||||
import 'package:fcs/pages/widgets/show_img.dart';
|
||||
import 'package:fcs/pages/widgets/show_multiple_img.dart';
|
||||
|
||||
Reference in New Issue
Block a user