bmrt_plugin 0.0.1 copy "bmrt_plugin: ^0.0.1" to clipboard
bmrt_plugin: ^0.0.1 copied to clipboard

Bmrt Plugin Flutter SDK and bmrt reports include video of user actions, network traffic, console logs and many other important traces from your app.

example/lib/main.dart

import 'dart:io';
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:bmrt_flugin/bmrt_plugin.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await launchBmrt((bool isBmrtLaunched) async {
    runApp(const MyApp());
  });
}

Future<void> launchBmrt(void Function(bool isBmrtLaunched) appRunner) async {
  var bmrtToken = "";
  if (Platform.isAndroid) {
    bmrtToken = "";
  } else if (Platform.isIOS) {
    bmrtToken = "";
  }
  await BmrtPlugin.launch(bmrtToken);
  appRunner(true);
}

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(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      navigatorObservers: [BmrtPlugin.customRouteObserver],
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}


class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(widget.title),
      ),
      body: const Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text(
              'BMRT LAUNCH',
            ),
            SizedBox(height: 100,),
            Text('Running on1:'),
            SizedBox(height: 100,),
            Text('Running on1:'),
          ],
        ),
      ),
      // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}
0
likes
0
points
35
downloads

Publisher

unverified uploader

Weekly Downloads

Bmrt Plugin Flutter SDK and bmrt reports include video of user actions, network traffic, console logs and many other important traces from your app.

Homepage
Repository

License

unknown (license)

Dependencies

convert, crypto, flutter, flutter_web_plugins, package_info_plus, path_provider, plugin_platform_interface, stack_trace, uuid

More

Packages that depend on bmrt_plugin