mocktail_image_network 1.1.0 copy "mocktail_image_network: ^1.1.0" to clipboard
mocktail_image_network: ^1.1.0 copied to clipboard

A Dart package which allows you to mock Image.network in your widget tests with confidence using the mocktail package.

example/lib/main.dart

import 'package:flutter/material.dart';

/// {@template fake_app}
/// Sample app used to showcase `mocktail_image_network`
/// {@endtemplate}
class FakeApp extends StatelessWidget {
  /// {@macro fake_app}
  const FakeApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: Image.network(
            // URL to the Flutter logo from https://flutter.dev/brand
            'https://storage.googleapis.com/cms-storage-bucket/c823e53b3a1a7b0d36a9.png',
          ),
        ),
      ),
    );
  }
}
50
likes
140
pub points
91%
popularity

Publisher

verified publisherfelangel.dev

A Dart package which allows you to mock Image.network in your widget tests with confidence using the mocktail package.

Homepage
Repository (GitHub)
View/report issues

Topics

#mock #test

Documentation

API reference

License

MIT (LICENSE)

Dependencies

mocktail

More

Packages that depend on mocktail_image_network