Commit 04bca173 authored by Ardi Baskoro's avatar Ardi Baskoro
Browse files

Initial commit

# Miscellaneous
# IntelliJ related
# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
# Flutter/Dart/Pub related
# Libraries should not include pubspec.lock, per
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
# This file should be version controlled and should not be manually edited.
revision: 097d3313d8e2c7f901932d63e537c1acefb87800
channel: stable
project_type: package
## 0.0.1
* TODO: Describe initial release.
TODO: Add your license here.
This README describes the package. If you publish this package to,
this README's contents appear on the landing page for your package.
For information about how to write a good package README, see the guide for
[writing package pages](
For general information about developing packages, see the Dart guide for
[creating packages](
and the Flutter guide for
[developing packages and plugins](
TODO: Put a short description of the package here that helps potential users
know whether this package might be useful for them.
## Features
TODO: List what your package can do. Maybe include images, gifs, or videos.
## Getting started
TODO: List prerequisites and provide or point to information on how to
start using the package.
## Usage
TODO: Include short and useful examples for package users. Add longer examples
to `/example` folder.
const like = 'sample';
## Additional information
TODO: Tell users more about the package: where to find more information, how to
contribute to the package, how to file issues, what response they can expect
from the package authors, and more.
include: package:flutter_lints/flutter.yaml
# Additional information about this file can be found at
library repository;
/// A Calculator.
class Calculator {
/// Returns [value] plus 1.
int addOne(int value) => value + 1;
import 'package:network/network/api/api_provider.dart';
import 'package:network/network/model/movie.dart';
class Repository {
final apiProvider = ApiProvider();
Future<Movie> fetchAllMovie() => apiProvider.getMovieList();
name: repository
description: Module Repository
version: 0.0.1
publish_to: 'none'
sdk: ">=2.16.1 <3.0.0"
flutter: ">=1.17.0"
sdk: flutter
path: ../network
sdk: flutter
flutter_lints: ^1.0.0
# For information on the generic Dart part of this file, see the
# following page:
# The following section is specific to Flutter.
# To add assets to your package, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
# For details regarding assets in packages, see
# An image asset can refer to one or more resolution-specific "variants", see
# To add custom fonts to your package, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
# For details regarding fonts in packages, see
import 'package:flutter_test/flutter_test.dart';
import 'package:repository/repository.dart';
void main() {
test('adds one to input values', () {
final calculator = Calculator();
expect(calculator.addOne(2), 3);
expect(calculator.addOne(-7), -6);
expect(calculator.addOne(0), 1);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment