amplitude_flutter 4.3.0
amplitude_flutter: ^4.3.0 copied to clipboard
Official Amplitude Flutter SDK, supporting Android, iOS, macOS, and web platforms.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add amplitude_flutter
copied to clipboard
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
amplitude_flutter: ^4.3.0
copied to clipboard
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:amplitude_flutter/amplitude.dart';
import 'package:amplitude_flutter/amplitude_web.dart';
import 'package:amplitude_flutter/autocapture/attribution.dart';
import 'package:amplitude_flutter/autocapture/autocapture.dart';
import 'package:amplitude_flutter/autocapture/page_views.dart';
import 'package:amplitude_flutter/configuration.dart';
import 'package:amplitude_flutter/constants.dart';
import 'package:amplitude_flutter/cookie_options.dart';
import 'package:amplitude_flutter/default_tracking.dart';
import 'package:amplitude_flutter/events/base_event.dart';
import 'package:amplitude_flutter/events/event_options.dart';
import 'package:amplitude_flutter/events/group_identify_event.dart';
import 'package:amplitude_flutter/events/identify.dart';
import 'package:amplitude_flutter/events/identify_event.dart';
import 'package:amplitude_flutter/events/ingestion_metadata.dart';
import 'package:amplitude_flutter/events/plan.dart';
import 'package:amplitude_flutter/events/revenue.dart';
import 'package:amplitude_flutter/events/revenue_event.dart';
import 'package:amplitude_flutter/tracking_options.dart';
import 'package:amplitude_flutter/web/amplitude_js.dart';
import 'package:amplitude_flutter/web/flutter_library_plugin.dart';
copied to clipboard