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

This package will create the tickets in ADO for all the issued happening in the Application.

example/lib/main.dart

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

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await ExceptionHandler.initialize(
      organization: 'veera4701',
      project: 'SupportZapper',
      accessToken: 'fcob4kn66ggtwm4rviplflj2gfu7nfq4czexb54ckfehgcqsh3vq',
      userDetails: {'name': 'test'});

  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'Support Zapper Demo',
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text(
          'Support Zapper Demo',
        ),
      ),
      body: Column(
        children: [
          Center(
            child: ElevatedButton(
              onPressed: () {
                ExceptionHandler.createTicket(message: 'Test Custom Ticket');
              },
              child: const Text(
                'Create Custom Ticket',
              ),
            ),
          ),
        ],
      ),
    );
  }
}
1
likes
0
points
46
downloads

Publisher

unverified uploader

Weekly Downloads

This package will create the tickets in ADO for all the issued happening in the Application.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

device_info_plus, dio, flutter

More

Packages that depend on support_zapper