Skip to main content

flocon 2.0.0 copy "flocon: ^2.0.0" to clipboard
flocon: ^2.0.0 copied to clipboard

Flocon SDK for Flutter - sends your app's network calls, analytics events and tables to the Flocon desktop debugger.

flocon #

Core of the Flutter SDK for Flocon, the desktop debugging tool for mobile apps: connection to the desktop app, Network (WebSocket events, mocks, bad network), Analytics, Feature flags, Timeline, Deeplinks, Dashboard, Tables and custom plugins.

Installation #

There is no release on pub.dev yet, depend on the repository:

dependencies:
  flocon:
    git:
      url: https://github.com/openflocon/FloconFlutter.git
      path: packages/flocon

Usage #

import 'package:flocon/flocon.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  if (kDebugMode) {
    await startFlocon((flocon) => flocon
      ..connect(host: 'localhost') // 10.0.2.2 from the Android emulator
      ..install(FloconNetwork(isImage: (request, _) => request.url.host == 'images.example.com')));
  }
  runApp(const MyApp());
}

Flocon.analytics.sender('firebase').logEvents([
  AnalyticsEvent(eventName: 'button_clicked', properties: [AnalyticsProperty('button_id', 'pay')]),
]);
Flocon.timeline.logUserAction('tap_buy');

HTTP calls are captured by flocon_dio or flocon_http.

See the full documentation and the example.

License #

MIT, see LICENSE.

0
likes
150
points
28
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flocon SDK for Flutter - sends your app's network calls, analytics events and tables to the Flocon desktop debugger.

Repository (GitHub)
View/report issues

Topics

#debugging #devtools #network #analytics #flocon

License

MIT (license)

Dependencies

device_info_plus, flutter, package_info_plus, path_provider, uuid

More

Packages that depend on flocon

Packages that implement flocon