isweb_test 1.0.0 copy "isweb_test: ^1.0.0" to clipboard
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.

example/lib/main.dart

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(),
    );
  }
}
1
likes
160
points
47
downloads

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on isweb_test