Skip to content

Commit

Permalink
use rrousselGit/ci for the CI (rrousselGit#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
rrousselGit authored Nov 28, 2020
1 parent c61ac20 commit 2c5a029
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 38 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build

on:
push:
pull_request:
schedule:
# runs the CI everyday at 10AM
- cron: "0 10 * * *"

jobs:
flutter:
runs-on: ubuntu-latest
container: cirrusci/flutter:${{matrix.channel}}

strategy:
matrix:
channel:
- dev
- beta
- stable

steps:
- uses: actions/checkout@v2

- name: Execute test script
run: curl -s https://raw.githubusercontent.com/rrousselGit/ci/master/scripts/ci.sh | bash
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[English](https://github.com/rrousselGit/provider/blob/master/README.md) | [Português](https://github.com/rrousselGit/provider/blob/master/resources/translations/pt_br/README.md) | [简体中文](./resources/translations/zh-CN/README.md)

[![Build Status](https://travis-ci.org/rrousselGit/provider.svg?branch=master)](https://travis-ci.org/rrousselGit/provider)
[![pub package](https://img.shields.io/pub/v/provider.svg)](https://pub.dev/packages/provider) [![codecov](https://codecov.io/gh/rrousselGit/provider/branch/master/graph/badge.svg)](https://codecov.io/gh/rrousselGit/provider) [![Gitter](https://badges.gitter.im/flutter_provider/community.svg)](https://gitter.im/flutter_provider/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
<a href="https://github.com/rrousselGit/provider/actions"><img src="https://github.com/rrousselGit/provider/workflows/Build/badge.svg" alt="Build Status"></a>
[![codecov](https://codecov.io/gh/rrousselGit/provider/branch/master/graph/badge.svg)](https://codecov.io/gh/rrousselGit/provider) [![Gitter](https://badges.gitter.im/flutter_provider/community.svg)](https://gitter.im/flutter_provider/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

[<img src="https://raw.githubusercontent.com/rrousselGit/provider/master/resources/flutter_favorite.png" width="200" />](https://flutter.dev/docs/development/packages-and-plugins/favorites)

Expand Down Expand Up @@ -187,10 +187,10 @@ The easiest way to read a value is by using the extension methods on [BuildConte
- `context.read<T>()`, which returns `T` without listening to it
- `context.select<T, R>(R cb(T value))`, which allows a widget to listen to only a small part of `T`.

Or to use the static method `Provider.of<T>(context)`, which will behave similarly to `watch` and when you pass `false`
Or to use the static method `Provider.of<T>(context)`, which will behave similarly to `watch` and when you pass `false`
to the `listen` parameter like `Provider.of<T>(context,listen: false)` it will behave similar to `read`.

It's worth noting that `context.read<T>()` won't make widget rebuild when the value changes and cannot be
It's worth noting that `context.read<T>()` won't make widget rebuild when the value changes and cannot be
called inside `StatelessWidget.build`/`State.build`. On the other hand, it can be freely called outside of these methods.

These methods will look up in the widget tree starting from the widget associated
Expand Down
3 changes: 2 additions & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: example
version: 1.0.0
homepage: https://github.com/rrousselGit/provider
homepage: https://github.com/rrousselGit/provider
author: Remi Rousselet <[email protected]>
publish_to: "none"

environment:
sdk: ">=2.7.0 <3.0.0"
Expand Down
3 changes: 0 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: provider
description: A wrapper around InheritedWidget to make them easier to use and more reusable.
version: 4.3.2+2
homepage: https://github.com/rrousselGit/provider
authors:
- Remi Rousselet <[email protected]>
- Flutter Team <[email protected]>

environment:
sdk: ">=2.7.0 <3.0.0"
Expand Down

0 comments on commit 2c5a029

Please sign in to comment.