null safety
This commit is contained in:
@@ -38,7 +38,7 @@ class InvoiceCartonTable extends StatelessWidget {
|
||||
? [Container()]
|
||||
: cartons!.asMap().entries.map((p) {
|
||||
return Container(
|
||||
color: p.value.isChecked
|
||||
color: p.value.isChecked!
|
||||
? Colors.grey.withOpacity(0.2)
|
||||
: Colors.grey.shade50.withOpacity(0.2),
|
||||
child: Container(
|
||||
@@ -56,7 +56,7 @@ class InvoiceCartonTable extends StatelessWidget {
|
||||
child: Row(
|
||||
children: <Widget>[
|
||||
onSelect == null
|
||||
? p.value.isChecked
|
||||
? p.value.isChecked!
|
||||
? SizedBox(
|
||||
child: Icon(Icons.check, color: primaryColor),
|
||||
width: 30)
|
||||
@@ -72,7 +72,7 @@ class InvoiceCartonTable extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
p.value.cartonNumber,
|
||||
p.value.cartonNumber!,
|
||||
style: textStyle,
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user