dreamsoftin / facebook_audience_network

Flutter Facebook Audience Network
https://pub.dartlang.org/packages/facebook_audience_network/
MIT License
154 stars 95 forks source link

casted height to `double` from `int` #68

Closed Palkesh22 closed 3 years ago

Palkesh22 commented 3 years ago

The height of the Container is double but it was casted to int.

Below is the Flutter error

════════ Exception caught by widgets library ═══════════════════════════════════════════════════════
The following _TypeError was thrown building FacebookNativeAd(dirty, dependencies: [MediaQuery], state: _FacebookNativeAdState#5c040):
type 'int' is not a subtype of type 'double'

The relevant error-causing widget was: 
  FacebookNativeAd file:///Users/<Path-to-file>/xyz.dart:13:12
When the exception was thrown, this was the stack: 
#0      _FacebookNativeAdState.buildPlatformView (package:facebook_audience_network/ad/ad_native.dart:231:13)
#1      _FacebookNativeAdState.build (package:facebook_audience_network/ad/ad_native.dart:175:22)
#2      StatefulElement.build (package:flutter/src/widgets/framework.dart:4744:28)
#3      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4627:15)
#4      StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4800:11)