car_doctor_sdk_tracking

Creator: coderz1093

Last updated:

0 purchases

car_doctor_sdk_tracking Image
car_doctor_sdk_tracking Images

Languages

Categories

Add to Cart

Description:

car doctor sdk tracking

The CarDoctor sdk sos is a Flutter package to integrate location-based garage finder for mobile device.
Getting started #
Environment:
flutter: ">=3.0.0"
sdk: '>=2.12.0 <3.0.0'
Import package into pubspec.yaml
dependencies:
car_doctor_sdk_tracking: ^0.0.3
copied to clipboard
Usage:

void main() async {
WidgetsFlutterBinding.ensureInitialized();
await AppTracking.instance.init('your base url');
runApp(MyApp());

}

copied to clipboard
After Login success

AppTracking.instance.trackLogin('YOUR_USER_ID',ePassId:'YOUR_EPASS_ID');

copied to clipboard
Track dynamic event
var content = {
'key1': 'value1',
'key2': value2,
'userId': your_user_id,
};
AppTracking.instance.trackEvent('your_event_name': content)

copied to clipboard
Track observer screen
import 'package:car_doctor_sdk_tracking/car_doctor_sdk_tracking.dart';
class MyApp extends StatelessWidget {
const MyApp({super.key});

// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
navigatorObservers: [CarDoctorObserver()],
);
}
}

copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.