bokki_exchange 1.0.0 copy "bokki_exchange: ^1.0.0" to clipboard
bokki_exchange: ^1.0.0 copied to clipboard

BOKKi - Shoutout(서로소개) 위젯. 내 앱에서 다른 메이커의 앱·웹 서비스를 소개하고, 그만큼 내 서비스도 다른 곳에서 소개받습니다.

example/lib/main.dart

import 'package:bokki_exchange/bokki_exchange.dart';
import 'package:flutter/material.dart';

/// 시험 실행: flutter run --dart-define=BASE=http://10.0.2.2:8790 --dart-define=CARD=자리ID --dart-define=STRIP=자리ID
void main() {
  const base = String.fromEnvironment('BASE');
  if (base.isNotEmpty) BokkiExchange.baseUrl = base;
  runApp(const ExampleApp());
}

class ExampleApp extends StatelessWidget {
  const ExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    const card = String.fromEnvironment('CARD');
    const strip = String.fromEnvironment('STRIP');
    return MaterialApp(
      title: 'BOKKi Shoutout 예제',
      theme: ThemeData(useMaterial3: true),
      darkTheme: ThemeData(useMaterial3: true, brightness: Brightness.dark),
      home: Scaffold(
        appBar: AppBar(title: const Text('BOKKi Shoutout 예제')),
        body: ListView(
          padding: const EdgeInsets.all(16),
          children: [
            const Text('카드형', style: TextStyle(fontSize: 18)),
            const SizedBox(height: 8),
            BokkiExchangeView(slotId: card, onImpression: (id) => debugPrint('BOKKI impression $id')),
            const SizedBox(height: 24),
            const Text('띠형', style: TextStyle(fontSize: 18)),
            const SizedBox(height: 8),
            BokkiExchangeView(slotId: strip, onImpression: (id) => debugPrint('BOKKI impression $id')),
          ],
        ),
      ),
    );
  }
}
0
likes
140
points
--
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

BOKKi - Shoutout(서로소개) 위젯. 내 앱에서 다른 메이커의 앱·웹 서비스를 소개하고, 그만큼 내 서비스도 다른 곳에서 소개받습니다.

Homepage

Topics

#ads #promotion #cross-promotion

License

MIT (license)

Dependencies

flutter, http, package_info_plus, url_launcher, visibility_detector

More

Packages that depend on bokki_exchange