convenient_test 1.5.1 convenient_test: ^1.5.1 copied to clipboard
Write and debug tests easily, with full action history, time travel, screenshots, rapid re-execution, video records, interactivity, isolation and more
import 'package:convenient_test/convenient_test.dart';
import 'package:convenient_test_example/home_page.dart';
import 'package:convenient_test_example/random_page.dart';
import 'package:convenient_test_example/second_page.dart';
import 'package:convenient_test_example/text_field_page.dart';
import 'package:convenient_test_example/timer_page.dart';
import 'package:convenient_test_example/zoom_page.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
static final navigatorKey = GlobalKey<NavigatorState>();
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return ConvenientTestWrapperWidget(
child: MaterialApp(
title: 'Example',
navigatorKey: MyApp.navigatorKey,
initialRoute: '/home',
routes: {
'/home': (_) => const HomePage(),
'/second': (_) => const SecondPage(),
'/timer': (_) => const TimerPage(),
'/zoom': (_) => const ZoomPage(),
'/text_field': (_) => const TextFieldPage(),
'/random': (_) => const RandomPage(),
},
),
);
}
}