flu_vcc_ads 1.0.0
flu_vcc_ads: ^1.0.0 copied to clipboard
A Flutter plugin for integrating VCCorp/Admicro native advertising (Android & iOS) via platform channels and PlatformViews.
example/lib/main.dart
import 'package:flu_vcc_ads_example/screen/home_screen.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
const primaryColor = Color(0xFF1565C0);
const secondaryColor = Color(0xFFE65100);
final cs = ColorScheme.fromSeed(
seedColor: primaryColor,
primary: primaryColor,
secondary: secondaryColor,
brightness: Brightness.light,
);
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'VCCorp Ads SDK Demo',
theme: ThemeData(
useMaterial3: true,
colorScheme: cs,
scaffoldBackgroundColor: const Color(0xFFF5F6FA),
cardTheme: CardThemeData(
elevation: 0,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(14),
),
color: Colors.white,
),
appBarTheme: AppBarTheme(
backgroundColor: cs.primary,
foregroundColor: cs.onPrimary,
elevation: 0,
centerTitle: false,
),
textTheme: const TextTheme(
titleLarge: TextStyle(
fontWeight: FontWeight.w700,
fontSize: 20,
letterSpacing: 0.2,
),
titleMedium: TextStyle(
fontWeight: FontWeight.w600,
fontSize: 16,
),
bodyMedium: TextStyle(fontSize: 14),
bodySmall: TextStyle(fontSize: 12),
),
),
home: const HomeScreen(),
);
}
}