Compare commits

..

No commits in common. 'fa254ca73ba679862cf84eac0c2af310850dfc68' and '4bdb5c2da33e94312019d7cf105b2dd0025f8369' have entirely different histories.

@ -42,14 +42,6 @@ class FilesList extends StatelessWidget {
var isPdf = images[itemIndex].split(".").last.toLowerCase() == "pdf";
var isExcel = images[itemIndex].split(".").last.toLowerCase() == "xlsx";
String checkNull(int index) {
try {
return types[itemIndex];
} catch (ex) {
return "Asset Guide";
}
}
return Row(
spacing: 8,
children: [
@ -89,7 +81,7 @@ class FilesList extends StatelessWidget {
2.height,
RichText(
text: TextSpan(
text: '${types.isEmpty ? "Asset Guide" : checkNull(itemIndex)} | ',
text: '${types.isEmpty ? "Asset Guide" : types[itemIndex]} | ',
style: AppTextStyles.tinyFont.copyWith(color: AppColor.lightTextColor(context)),
children: <TextSpan>[
TextSpan(

@ -228,7 +228,6 @@ class _AttachmentPickerState extends State<AttachmentPicker> with SingleTickerPr
ImageSource? source = await showModalBottomSheet<ImageSource>(
context: context,
backgroundColor: Colors.transparent,
builder: (BuildContext context) {
return StatefulBuilder(
builder: (BuildContext context, StateSetter setModalState) {

Loading…
Cancel
Save