animatedAdWidget property

Widget animatedAdWidget

Implementation

Widget get animatedAdWidget {
  return AnimatedSize(
    duration: const Duration(milliseconds: 250),
    child: FutureBuilder<bool>(
      future: adsLoad.future,
      builder: (context, snapshot) {
        if (!snapshot.hasData || snapshot.data == false) {
          return const SizedBox();
        }
        return SizedBox(
          height: adHeight?.toDouble() ?? height,
          child: AdWidget(ad: _myNative!),
        );
      },
    ),
  );
}