testsweets 2.0.0-beta.2 testsweets: ^2.0.0-beta.2 copied to clipboard
A no-code test automation tool that turns any tester into an automation engineer
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,
],
);
}
}