Flutter

Example App


Adrop ์ดˆ๊ธฐํ™”ํ•˜๊ธฐ

  1. Adrop ์„ Importํ•˜์„ธ์š”

  2. ํ”„๋กœ์ ํŠธ์˜ ๋Ÿฐํƒ€์ž„ ๋ผ์ดํ”„์‚ฌ์ดํด ์ดˆ๊ธฐ์—, ๊ฐ€๊ธ‰์ ์ด๋ฉด ์‹œ์ž‘ ์‹œ Adrop์„ ์ดˆ๊ธฐํ™”ํ•ด์ฃผ์„ธ์š”.

import 'package:adrop_ads_flutter/adrop_ads_flutter.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
    initialize();
  }

  Future<void> initialize() async {
    // true for production
    await Adrop.initialize(false);
  }
}

production ํŒŒ๋ผ๋ฏธํ„ฐ๋ฅผ false๋กœ ์ „๋‹ฌํ•  ๊ฒฝ์šฐ, SDK๋‚ด์—์„œ ๋ฐœ์ƒํ•˜๋Š” ๋กœ๊ทธ๊ฐ€ ์ถœ๋ ฅ๋ฉ๋‹ˆ๋‹ค.

๊ด‘๊ณ  ์œ ๋‹› ๋…ธ์ถœํ•˜๊ธฐ

Last updated