Untitled
unknown
plain_text
2 years ago
4.0 kB
5
Indexable
Obx(() => changeRequestC.imagefiles.isEmpty ? SingleChildScrollView( scrollDirection: Axis.horizontal, child: Row( children: [ Container( margin: EdgeInsets.only(right: 40), height: 156.2, width: 156.2, decoration: BoxDecoration( image: DecorationImage( fit: BoxFit.cover, image: AssetImage( 'assets/img/evidence_truck_icon_01.png')), boxShadow: [ BoxShadow( blurRadius: 5, spreadRadius: 2, blurStyle: BlurStyle.outer) ], //border: Border.all(color: hexToColor('#80939D')), borderRadius: BorderRadius.circular(5.6)), ), Container( margin: EdgeInsets.only(right: 5), height: 156.2, width: 156.2, decoration: BoxDecoration( image: DecorationImage( fit: BoxFit.cover, image: AssetImage( 'assets/img/evidence_truck_icon_01.png')), boxShadow: [ BoxShadow( blurRadius: 5, spreadRadius: 2, blurStyle: BlurStyle.outer) ], //border: Border.all(color: hexToColor('#80939D')), borderRadius: BorderRadius.circular(5.6)), ) ], ), ) : SingleChildScrollView( scrollDirection: Axis.horizontal, child: Row( children: changeRequestC.imagefiles .map( (element) => Container( margin: EdgeInsets.only(right: 40), height: 156.2, width: 156.2, decoration: BoxDecoration( image: DecorationImage( fit: BoxFit.cover, image: FileImage(element)), boxShadow: [ BoxShadow( blurRadius: 5, spreadRadius: 2, blurStyle: BlurStyle.outer) ], //border: Border.all(color: hexToColor('#80939D')), borderRadius: BorderRadius.circular(5.6)), ), ) .toList()), )),
Editor is loading...