title: flutter_native_admob preload ads
body: <p>is it possible to preload the native flutter admob ads, for example in initState?</p>
  
  <p>I am trying to use the ads in a <code>ListView.builder()</code> filled with user-related content and the ads in between. But the ads are loaded too late so that the user can see the spinner appear on screen if he scrolls through the <code>ListView</code>.</p>
  
  <p>Example code (from <a href="https://pub.dev/packages/flutter_native_admob" rel="nofollow noreferrer">https://pub.dev/packages/flutter_native_admob</a>):</p>
  
  <pre><code>@override
  Widget build(BuildContext context) {
  return MaterialApp(
    home: Scaffold(
      appBar: AppBar(
        title: const Text('Plugin example app'),
      ),
      body: ListView(
        children: &lt;Widget&gt;[
          Container(
            margin: EdgeInsets.only(bottom: 20.0),
            height: 200.0,
            color: Colors.green,
          ),
          Container(
            margin: EdgeInsets.only(bottom: 20.0),
            height: 200.0,
            color: Colors.green,
          ),
          Container(
            margin: EdgeInsets.only(bottom: 20.0),
            height: 200.0,
            color: Colors.green,
          ),
          NativeAdmobBannerView(                // &lt;---- preload this ad
            adUnitID: "&lt;Your ad unit ID&gt;",
            style: BannerStyle.dark, // enum dark or light
            showMedia: true, // whether to show media view or not
            contentPadding: EdgeInsets.all(10), // content padding
            onCreate: (controller) {
              controller.setStyle(BannerStyle.light); // Dynamic update style
            },
          ),
          Container(
            margin: EdgeInsets.only(bottom: 20.0),
            height: 200.0,
            color: Colors.green,
          ),
          Container(
            margin: EdgeInsets.only(bottom: 20.0),
            height: 200.0,
            color: Colors.green,
          ),
          Container(
            margin: EdgeInsets.only(bottom: 20.0),
            height: 200.0,
            color: Colors.green,
          ),
        ],
      ),
    ),
  );
  }
  </code></pre>
  
  <p>Thanks in advance.</p>