Created
June 24, 2019 15:16
-
-
Save veetaw/94d94c8960ff7dd0675917c5ee1cbeb1 to your computer and use it in GitHub Desktop.
main functtion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:io'; | |
# ... | |
void main() { | |
# other code .. | |
Admob.inittialize(ggetAppId()) | |
runApp(Application()) | |
} | |
# ... | |
String getAppId() { | |
if (Platform.isIOS) { | |
return 'ca-app-pub-3940256099942544~1458002511'; | |
} else if (Platform.isAndroid) { | |
return 'ca-app-pub-3940256099942544~3347511713'; | |
} | |
return null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment