flutter_ubi 0.0.3 copy "flutter_ubi: ^0.0.3" to clipboard
flutter_ubi: ^0.0.3 copied to clipboard

PlatformAndroidiOS
outdated

Flutter UBI is a cross-platform SDK that provides the ability to securely collect and analyze user driving behavior data.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_ubi_example/page/login.dart';
import 'package:flutter_ubi_example/page/ubi.dart';

import 'common/sdk_utils.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  final isSdkEnabled = await tryToEnableSDK();
  runApp(MyApp(isSdkEnabled));
}

class MyApp extends StatelessWidget {
  final bool isSdkEnabled;

  const MyApp(this.isSdkEnabled, {Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: isSdkEnabled ? UBIPage() : LoginPage(),
    );
  }
}
0
likes
130
points
15
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter UBI is a cross-platform SDK that provides the ability to securely collect and analyze user driving behavior data.

Homepage

Documentation

API reference

License

unknown (license)

Dependencies

dio, flutter, shared_preferences

More

Packages that depend on flutter_ubi

Packages that implement flutter_ubi