test_flutter 1.0.1 copy "test_flutter: ^1.0.1" to clipboard
test_flutter: ^1.0.1 copied to clipboard

A Flutter example package for testing and publishing to pub.dev

Test Flutter #

A simple Flutter package for testing and publishing to pub.dev.

Features #

  • Simple calculator with basic arithmetic operations
  • Counter widget for demonstration
  • Comprehensive test coverage

Getting started #

Add this to your package's pubspec.yaml file:

dependencies:
  test_flutter: ^1.0.0

Usage #

Calculator #

import 'package:test_flutter/test_flutter.dart';

// Basic arithmetic operations
final sum = Calculator.add(2, 3); // 5
final difference = Calculator.subtract(5, 3); // 2
final product = Calculator.multiply(2, 3); // 6
final quotient = Calculator.divide(6, 2); // 3.0

Counter #

import 'package:test_flutter/test_flutter.dart';

final counter = Counter();
counter.increment(); // count = 1
counter.increment(); // count = 2
counter.decrement(); // count = 1
counter.reset(); // count = 0

Testing #

Run the tests with:

flutter test

License #

This project is licensed under the MIT License - see the LICENSE file for details.

0
likes
160
points
11
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter example package for testing and publishing to pub.dev

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on test_flutter