amplitude_flutter 4.7.0 copy "amplitude_flutter: ^4.7.0" to clipboard
amplitude_flutter: ^4.7.0 copied to clipboard

Official Amplitude Flutter SDK, supporting Android, iOS, macOS, and web platforms.

example/lib/main.dart

import 'package:flutter/foundation.dart' show kIsWeb;
import 'package:flutter/material.dart';
import 'package:flutter/semantics.dart';

import 'my_app.dart';

void main() {
  // On Flutter web with the default CanvasKit renderer, the Amplitude Browser
  // SDK's DOM-based autocapture (elementInteractions / formInteractions /
  // fileDownloads) can only observe Flutter's accessibility semantics tree.
  // That tree is off until something enables it, so enable it here to
  // demonstrate web click/form capture. Enabling semantics app-wide has a
  // runtime cost and known side effects, so only do this if you actually want
  // DOM-based web capture.
  if (kIsWeb) {
    WidgetsFlutterBinding.ensureInitialized();
    SemanticsBinding.instance.ensureSemantics();
  }
  runApp(const MyApp('API_KEY'));
}
121
likes
160
points
183k
downloads

Documentation

API reference

Publisher

verified publisheramplitude.com

Weekly Downloads

Official Amplitude Flutter SDK, supporting Android, iOS, macOS, and web platforms.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

flutter, flutter_web_plugins

More

Packages that depend on amplitude_flutter

Packages that implement amplitude_flutter