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());
}
floconAnalytics('firebase').logEvents([
AnalyticsEvent(eventName: 'button_clicked', properties: [AnalyticsProperty('button_id', 'pay')]),
]);
floconTimeline.logUserAction('tap_buy');
HTTP calls are captured by flocon_dio or
flocon_http.
See the full documentation and the example.
License
MIT, see LICENSE.
Libraries
- flocon
- Flocon SDK for Flutter: sends your app's network calls to the Flocon desktop app.