luciq_gql_link 1.0.0
luciq_gql_link: ^1.0.0 copied to clipboard
This package is an add on to luciq_flutter. It intercepts any GraphQL operations performed with the gql package and sends them to the report that will be sent to the dashboard.
import 'package:flutter/material.dart';
import 'package:luciq_flutter/luciq_flutter.dart';
import 'graphql_page.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
Luciq.init(
token: '0174a800719ebdebf7b248fa6ae2ef17',
invocationEvents: [InvocationEvent.floatingButton],
);
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'luciq_gql_link example',
theme: ThemeData(primarySwatch: Colors.blue),
home: const GraphQLPage(),
);
}
}