flutter_segment 0.0.5 copy "flutter_segment: ^0.0.5" to clipboard
flutter_segment: ^0.0.5 copied to clipboard

discontinued
outdated

Flutter implementation of Segment Analytics for iOS and Android.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_segment/flutter_segment.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Segment example app'),
        ),
        body: Center(
          child: FlatButton(
            child: Text('TRACK ACTION WITH SEGMENT'),
            onPressed: () async {
              await FlutterSegment.track(
                eventName: 'TestEvent',
                properties: {
                  'price': 12.22,
                  'product': 'TestProduct',
                },
              );
            },
          ),
        ),
      ),
    );
  }
}
69
likes
0
pub points
92%
popularity

Publisher

unverified uploader

Flutter implementation of Segment Analytics for iOS and Android.

Homepage

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_segment