add media promo
This commit is contained in:
@@ -253,6 +253,27 @@ class WithMediaPromo extends StatelessWidget {
|
||||
}
|
||||
},
|
||||
),
|
||||
Image.network(
|
||||
'https://${Constant.baseSocket}/one-media/one-queue/slide-counter/6.jpg',
|
||||
errorBuilder: (context, error, stackTrace) {
|
||||
return Image.asset(
|
||||
'images/6.jpg',
|
||||
fit: BoxFit.fitWidth,
|
||||
);
|
||||
},
|
||||
headers: {
|
||||
'Access-Control-Allow-Origin': '*',
|
||||
},
|
||||
loadingBuilder: (context, child, loadingProgress) {
|
||||
if (loadingProgress == null) {
|
||||
return child;
|
||||
} else {
|
||||
return Center(
|
||||
child: CircularProgressIndicator(),
|
||||
);
|
||||
}
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user