|
|
|
|
@ -42,6 +42,14 @@ 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: [
|
|
|
|
|
@ -81,7 +89,7 @@ class FilesList extends StatelessWidget {
|
|
|
|
|
2.height,
|
|
|
|
|
RichText(
|
|
|
|
|
text: TextSpan(
|
|
|
|
|
text: '${types.isEmpty ? "Asset Guide" : types[itemIndex]} | ',
|
|
|
|
|
text: '${types.isEmpty ? "Asset Guide" : checkNull(itemIndex)} | ',
|
|
|
|
|
style: AppTextStyles.tinyFont.copyWith(color: AppColor.lightTextColor(context)),
|
|
|
|
|
children: <TextSpan>[
|
|
|
|
|
TextSpan(
|
|
|
|
|
|