isweb_test 1.0.0
isweb_test: ^1.0.0 copied to clipboard
Defines a function for allowing to do tests on web. The package test_screen uses it to emulate a web environment for testing and allow run tests on Windows, Linux or Mac.
import 'package:flutter/material.dart';
import 'screens/multi_platform/multi_platform_screen.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'isweb_test Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const MultiPlatformScreen(),
);
}
}