I try simple layout from data. It should be just a text and image. However, looking at the data it have "image", null or video.
My idea is when image= null, just show a transparent file. But how to handle video?
List profileImage = ["picture1.jpg", null , "picture3.jpg", "profile_video_3.mp4"];
child: Column(
children: <Widget>[
Text('Stack Oveflow'),
Image.asset('assets/quizImages/$FromprofileImage')
],
),
Expected output is layout have text widget and handle the "image widget" for null value and video file
What is the best practice to handle this? Thanks