|
@@ -63,7 +63,7 @@ class _PackagePageState extends State<PackagePage> {
|
|
if (!openStore) {
|
|
if (!openStore) {
|
|
HelpersViewModel.dialog(
|
|
HelpersViewModel.dialog(
|
|
2,
|
|
2,
|
|
- Row(
|
|
|
|
|
|
+ const Row(
|
|
children: [
|
|
children: [
|
|
Icon(Icons.error),
|
|
Icon(Icons.error),
|
|
SizedBox(width: 5),
|
|
SizedBox(width: 5),
|
|
@@ -258,41 +258,29 @@ class _PackagePageState extends State<PackagePage> {
|
|
const Divider(indent: 2, color: Colors.black),
|
|
const Divider(indent: 2, color: Colors.black),
|
|
const SizedBox(height: 10),
|
|
const SizedBox(height: 10),
|
|
const Center(
|
|
const Center(
|
|
- child: Text("Bitácora",
|
|
|
|
|
|
+ child: Text("Recibo Capturado",
|
|
style:
|
|
style:
|
|
TextStyle(fontSize: 18, fontWeight: FontWeight.bold))),
|
|
TextStyle(fontSize: 18, fontWeight: FontWeight.bold))),
|
|
const SizedBox(height: 20),
|
|
const SizedBox(height: 20),
|
|
- widget._binnacle != null && widget._binnacle.length > 0
|
|
|
|
- ? SizedBox(
|
|
|
|
- child: DataTable(
|
|
|
|
- horizontalMargin: 0,
|
|
|
|
- columnSpacing: 10,
|
|
|
|
- columns: const <DataColumn>[
|
|
|
|
- DataColumn(label: Text("Entrada/Salida")),
|
|
|
|
- DataColumn(label: Text("Fecha")),
|
|
|
|
- DataColumn(label: Text("Motivo")),
|
|
|
|
- ],
|
|
|
|
- rows: List<DataRow>.generate(
|
|
|
|
- widget._binnacle.length,
|
|
|
|
- (int index) => DataRow(
|
|
|
|
- cells: <DataCell>[
|
|
|
|
- DataCell(Text(widget._binnacle[index]
|
|
|
|
- ["entradaSalida"] ==
|
|
|
|
- "E"
|
|
|
|
- ? "Entrada"
|
|
|
|
- : "Salida")),
|
|
|
|
- DataCell(Text(widget._binnacle[index]["fecha"]
|
|
|
|
- .toString()
|
|
|
|
- .substring(0, 16))),
|
|
|
|
- DataCell(Text(widget._binnacle[index]["motivo"])),
|
|
|
|
- ],
|
|
|
|
- ),
|
|
|
|
- )),
|
|
|
|
- )
|
|
|
|
|
|
+ widget._package["ultimaRecepcion"]["fecha"] != null
|
|
|
|
+ ? const Padding(
|
|
|
|
+ padding: EdgeInsets.all(8.0),
|
|
|
|
+ child: Center(
|
|
|
|
+ child: Row(
|
|
|
|
+ children: [
|
|
|
|
+ Icon(Icons.description_outlined, size: 80),
|
|
|
|
+ Text("Recibo de Captura")
|
|
|
|
+ ],
|
|
|
|
+ )))
|
|
: const Padding(
|
|
: const Padding(
|
|
padding: EdgeInsets.all(8.0),
|
|
padding: EdgeInsets.all(8.0),
|
|
- child: Center(child: Text("Sin bitácora.")),
|
|
|
|
- )
|
|
|
|
|
|
+ child: Center(
|
|
|
|
+ child: Row(
|
|
|
|
+ children: [
|
|
|
|
+ Icon(Icons.watch_later_outlined, size: 80),
|
|
|
|
+ Text("Sin Recibo")
|
|
|
|
+ ],
|
|
|
|
+ )))
|
|
],
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|