easy_test_variants 0.0.2
easy_test_variants: ^0.0.2 copied to clipboard
Predefined device & platform variants to eliminate testing boilerplate. Build your own custom TestVariants and combine them all into a powerful matrix via MatrixVariant.
import 'package:example/user_profile_screen.dart';
import 'package:example/user_types.dart';
import 'package:flutter/material.dart';
void main() {
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 MaterialApp(
title: 'Demo',
theme: ThemeData(colorScheme: .fromSeed(seedColor: Colors.deepPurple)),
home: UserProfileScreen(scenario: ProfileTypes.admin),
);
}
}