Skip to content

Commit

Permalink
migrate from 'flutter pub run' to 'dart run' (#2757)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Remi Rousselet <[email protected]>
  • Loading branch information
freemansoft and rrousselGit authored Jul 21, 2023
1 parent de164ad commit 7db87eb
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 11 deletions.
6 changes: 6 additions & 0 deletions examples/counter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
The standard Flutter Counter example built with [Riverpod]

This uses `ProvidedScope`.


[riverpod]: https://github.com/rrousselGit/riverpod
2 changes: 1 addition & 1 deletion examples/marvel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Where `public_key` and `private_key` are obtained from https://developer.marvel.
Since this project uses [freezed](https://pub.dev/packages/freezed) for code generation, be sure to run the generator with the following command before attempting to build/run the application:

```sh
flutter pub run build_runner build
dart run build_runner build -d
```

[riverpod]: https://github.com/rrousselGit/riverpod
14 changes: 7 additions & 7 deletions examples/pub/README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# Pub

Install needed global packages
## Install needed global packages

```bash
cd riverpod
dart pub global activate melos
```

Build the riverpod packages
## Build the Example App

Run the code generation
```bash
cd examples/pub
flutter pub get
dart run build_runner build -d
```

## Start the Example App
## Run the Example App

Create and run the android deployable
```bash
cd examples/pub
flutter pub run build_runner build


flutter create . --platforms android
flutter run
```
2 changes: 1 addition & 1 deletion examples/random_number/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# random_number

A new Flutter project.
A random number generator similar to the counter project. It has a single button that generates a random number.

## Getting Started

Expand Down
2 changes: 1 addition & 1 deletion examples/stackoverflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ This can be done with:

```sh
cd examples/stackoverflow
flutter pub run build_runner build --delete-conflicting-outputs
dart run build_runner build -d
```
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fluttter pub get

```bash
cd examples/build_yaml
flutter pub run build_runner build
dart run build_runner build

flutter test
```

0 comments on commit 7db87eb

Please sign in to comment.