add carton editor to update
This commit is contained in:
@@ -35,6 +35,7 @@ class CartonSubmit extends StatelessWidget {
|
||||
final List<CargoType> surchareItems;
|
||||
final OnCreateCarton? onCreate;
|
||||
final OnPrevious? onPrevious;
|
||||
final bool isNew;
|
||||
const CartonSubmit(
|
||||
{Key? key,
|
||||
required this.sender,
|
||||
@@ -51,7 +52,8 @@ class CartonSubmit extends StatelessWidget {
|
||||
this.width = 0,
|
||||
this.height = 0,
|
||||
this.cargoTypes = const [],
|
||||
this.surchareItems = const []})
|
||||
this.surchareItems = const [],
|
||||
this.isNew = true})
|
||||
: super(key: key);
|
||||
|
||||
@override
|
||||
@@ -310,7 +312,8 @@ class CartonSubmit extends StatelessWidget {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
Flexible(
|
||||
child: LocalText(context, 'box.crete.carton',
|
||||
child: LocalText(
|
||||
context, isNew ? 'box.crete.carton' : "box.update.btn",
|
||||
color: Colors.white, fontSize: 15),
|
||||
),
|
||||
const SizedBox(width: 5),
|
||||
|
||||
Reference in New Issue
Block a user