ad_banner.dart 298 B

123456789101112
  1. import 'package:flutter/material.dart';
  2. class AdBanner extends StatelessWidget {
  3. final String bannerUrl;
  4. AdBanner({Key key, @required this.bannerUrl}) : super(key: key);
  5. @override
  6. Widget build(BuildContext context) {
  7. return SliverToBoxAdapter(child: Image.network(bannerUrl));
  8. }
  9. }