coolfix_flutter 0.1.0 copy "coolfix_flutter: ^0.1.0" to clipboard
coolfix_flutter: ^0.1.0 copied to clipboard

CoolFix support inquiry and replay SDK for Flutter applications.

example/lib/main.dart

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

const _appToken = String.fromEnvironment('COOLFIX_APP_TOKEN');

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  if (_appToken.isNotEmpty) {
    await CoolFix.start(_appToken);
  }
  runApp(const CoolFixApp(child: ExampleApp()));
}

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

  @override
  Widget build(BuildContext context) => MaterialApp(
        title: 'CoolFix Example',
        restorationScopeId: 'coolfix_example',
        theme: ThemeData(
          colorScheme: ColorScheme.fromSeed(seedColor: const Color(0xFF3D5AFE)),
          useMaterial3: true,
        ),
        home: const ExampleHome(),
      );
}

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

  @override
  Widget build(BuildContext context) => Scaffold(
        appBar: AppBar(title: const Text('CoolFix')),
        body: Center(
          child: Padding(
            padding: const EdgeInsets.all(24),
            child: FilledButton.icon(
              onPressed: () => CoolFix.presentInquiry(context),
              icon: const Icon(Icons.support_agent),
              label: const Text('문의하기'),
            ),
          ),
        ),
      );
}
0
likes
0
points
338
downloads

Publisher

unverified uploader

Weekly Downloads

CoolFix support inquiry and replay SDK for Flutter applications.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http, posthog_flutter

More

Packages that depend on coolfix_flutter