xLayout_Builder_ImmaginiArea method

Widget xLayout_Builder_ImmaginiArea(
  1. List<XMediaItem>? liImage, {
  2. String? parentID,
  3. DateTime? dt,
})

Builder del Widget per la visualizzazione delle IMMAGINI sulla riga degli Items

Implementation

Widget xLayout_Builder_ImmaginiArea(List<XMediaItem>? liImage, {String? parentID, DateTime? dt}) {
  return Container(
      margin: EdgeInsets.only(bottom: 7),
      child: SingleChildScrollView(
          scrollDirection: Axis.horizontal,
          child: Row(
              children: liImage!
                  .where((element) => element.xDocID == (parentID))
                  .map((element) => GestureDetector(
                        onTap: () => cmd_OpenPhoto(element, element.id, dtImage: dt),
                        child: Container(margin: EdgeInsets.symmetric(horizontal: 5), width: 100, child: Image.memory(element.payload!, width: 100, height: 100)),
                      ))
                  .toList())));
}