|
|
|
|
@ -93,7 +93,10 @@ class _ITGAdsScreenState extends State<ITGAdsScreen> {
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
void dispose() {
|
|
|
|
|
_controller.dispose();
|
|
|
|
|
if (_controller != null) {
|
|
|
|
|
_controller.dispose();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// player.stop();
|
|
|
|
|
// player.dispose();
|
|
|
|
|
super.dispose();
|
|
|
|
|
@ -172,7 +175,35 @@ class _ITGAdsScreenState extends State<ITGAdsScreen> {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
if (isImage) Image.file(imageFile),
|
|
|
|
|
if (isImage)
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Image.file(imageFile),
|
|
|
|
|
50.height,
|
|
|
|
|
Container(
|
|
|
|
|
padding: const EdgeInsets.all(16),
|
|
|
|
|
decoration: Utils.containerRadius(MyColors.white, 10),
|
|
|
|
|
child: const Icon(
|
|
|
|
|
Icons.thumb_up,
|
|
|
|
|
color: MyColors.gradiantEndColor,
|
|
|
|
|
),
|
|
|
|
|
).onPress(
|
|
|
|
|
() {
|
|
|
|
|
try {
|
|
|
|
|
DashboardApiClient().setAdvertisementViewed(masterID!, advertisementData!.advertisementId!).then((value) {
|
|
|
|
|
logger.d(value);
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
});
|
|
|
|
|
} catch (ex) {
|
|
|
|
|
logger.wtf(ex);
|
|
|
|
|
Utils.handleException(ex, context, null);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
|