testsweets 1.9.0 testsweets: ^1.9.0 copied to clipboard
A package to help sync flutter automation data with TestSweets backend
import 'package:flutter/material.dart';
import 'package:stacked_services/stacked_services.dart';
import 'package:testsweets/testsweets.dart';
import 'app/app.locator.dart';
import 'app/app.router.dart';
Future<void> main() async {
await setupTestSweets();
setupLocator();
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
builder: (ctx, child) => TestSweetsOverlayView(
projectId: 'mqAdFjIE3CTunAszoP5M',
child: child!,
),
initialRoute: Routes.signUpView,
navigatorKey: StackedService.navigatorKey,
onGenerateRoute: StackedRouter().onGenerateRoute,
navigatorObservers: [
TestSweetsNavigatorObserver.instance,
],
);
}
}