swetrix_flutter 0.2.0 copy "swetrix_flutter: ^0.2.0" to clipboard
swetrix_flutter: ^0.2.0 copied to clipboard

A lightweight Swetrix Events API client for Flutter and Dart apps.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:swetrix_example/src/app.dart';
import 'package:swetrix_flutter/swetrix_flutter.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  final client = SwetrixFlutterClient(
    projectId: 'KwBjnEj5H3YK', // put 'YOUR_PROJECT_ID' here
    clientIpResolver: () async => '203.0.113.42',
    options: SwetrixOptions(
      apiUrl: Uri.parse('https://analytics.ehwplus.com/backend/log'),
      profileId: 'user_42',
    ),
  );
  runApp(SwetrixExampleApp(client: client));
}
1
likes
145
points
137
downloads

Publisher

verified publisherehwplus.com

Weekly Downloads

A lightweight Swetrix Events API client for Flutter and Dart apps.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

CC-BY-SA-4.0 (license)

Dependencies

device_info_plus, flutter, http, meta, package_info_plus, shared_preferences, uuid

More

Packages that depend on swetrix_flutter