bmrt_flugin_beta 0.0.6 copy "bmrt_flugin_beta: ^0.0.6" to clipboard
bmrt_flugin_beta: ^0.0.6 copied to clipboard

Test Bmrt Pluggin Flutter SDK and Testbmrt reports include video of user actions, network traffic, console logs and many other important traces from your app. Now you know what exactly led to the unex [...]

example/lib/main.dart

import 'dart:io';

import 'package:bmrt_flugin_example/screen_2.dart';
import 'package:flutter/material.dart';
import 'dart:async';

import 'package:bmrt_flugin/bmrt_flugin.dart';

/*void main() {
  runApp(const MyApp());
}*/

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

Future<void> launchBmrt(void Function(bool isBugseeLaunched) appRunner) async {
  var bugseeToken = "";
  if (Platform.isAndroid) {
    bugseeToken = "0c56d0ba-a589-4aae-9f7d-519fdf4f680b";
  } else if (Platform.isIOS) {
    bugseeToken = "2684adde-711f-475e-b24c-ef84fb1ca2f1";
  }
  await BmrtFlugin.launch(bugseeToken);
  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: [BmrtFlugin.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: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            const Text(
              'BMRT LAUNCH',
            ),
            ElevatedButton(
              onPressed: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(builder: (context) => Screen3()),
                );
              },
              child: Text("Screen Navigatie"),
            ),
            SizedBox(height: 100,),
            Text('Running on1:'),
            SizedBox(height: 100,),
            Text('Running on1:'),
          ],
        ),
      ),
      // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}
0
likes
120
points
46
downloads

Publisher

unverified uploader

Weekly Downloads

Test Bmrt Pluggin Flutter SDK and Testbmrt reports include video of user actions, network traffic, console logs and many other important traces from your app. Now you know what exactly led to the unexpected behavior.

Homepage
Repository

Documentation

API reference

License

AGPL-3.0 (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_flugin_beta