Skip to content

Commit

Permalink
Merge branch 'master' into null_safety
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanpodila committed Mar 7, 2021
2 parents 6149f7e + 5f85645 commit 79d5597
Show file tree
Hide file tree
Showing 8 changed files with 96 additions and 64 deletions.
30 changes: 29 additions & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,8 @@
"avatar_url": "https://avatars0.githubusercontent.com/u/5619696?v=4",
"profile": "http://www.inovatso.com.br",
"contributions": [
"code"
"code",
"doc"
]
},
{
Expand All @@ -446,6 +447,33 @@
"contributions": [
"doc"
]
},
{
"login": "geweald",
"name": "D",
"avatar_url": "https://avatars1.githubusercontent.com/u/16155640?v=4",
"profile": "https://github.com/geweald",
"contributions": [
"doc"
]
},
{
"login": "davidmartos96",
"name": "David Martos",
"avatar_url": "https://avatars1.githubusercontent.com/u/22084723?v=4",
"profile": "https://github.com/davidmartos96",
"contributions": [
"code"
]
},
{
"login": "inimaga",
"name": "Issa Nimaga",
"avatar_url": "https://avatars3.githubusercontent.com/u/24917864?v=4",
"profile": "https://github.com/inimaga",
"contributions": [
"doc"
]
}
],
"contributorsPerLine": 7,
Expand Down
100 changes: 52 additions & 48 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/docs/examples/github/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ The first step is to define the reactive (aka _observable_) state of your UI. Th
In this case, we want a simple UI where we accept the _github-ID_ as input. We use that to fetch the user's repositories. This call will be made using the <PubBadge name="github" /> package, the results for which are stored as a `List<Repository>`. The `GithubStore` class so far looks like so:

```dart
import 'package:github/server.dart';
import 'package:github/github.dart';
import 'package:mobx/mobx.dart';
part 'github_store.g.dart';
class GithubStore = _GithubStore with _$GithubStore;
abstract class _GithubStore with Store {
final GitHub client = createGitHubClient();
final GitHub client = GitHub();
List<Repository> repositories = [];
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/guides/cheat-sheet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ abstract class _Contact with Store {
// highlight-next-line
@computed
String get fullName() => '$firstName, $lastName';
String get fullName => '$firstName, $lastName';
ObservableList<String> phoneNumbers = ObservableList.of([]);
Expand Down
12 changes: 6 additions & 6 deletions docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@docusaurus/core": "2.0.0-alpha.65",
"@docusaurus/preset-classic": "2.0.0-alpha.65",
"@mdx-js/react": "^1.5.8",
"axios": "^0.20.0",
"axios": "^0.21.1",
"clsx": "^1.1.1",
"dotenv": "^8.2.0",
"lodash.get": "^4.4.2",
Expand Down
6 changes: 3 additions & 3 deletions docs/plugins/fetch-versions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ const plugins = [
// Fetch the plugins latest version from the pub API
async function fetchPluginVersion(plugin) {
try {
const response = await axios.get(`https://pub.dev/api/packages/${plugin}`);
const response = await axios.get(`https://pub.dev/packages/${plugin}.json`);
const versions = response.data.versions;

if (!Array.isArray(versions)) {
return '';
}

return versions[versions.length - 1].version;
return versions[versions.length - 1];
} catch (e) {
console.log(`Failed to load version for plugin "${plugin}".`);
return '';
Expand Down Expand Up @@ -78,7 +78,7 @@ module.exports = function sourceVersions() {
...current,
[envVar]: JSON.stringify(process.env[envVar] || ''),
};
}, {})
}, {}),
),
],
};
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/testimonials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ MobX supports me on all of my projects.`,
title:
'Founded the Brazilian community Flutterando. Creator of bloc_pattern, Slidy and flutter_modular packages.',
photoUrl:
'https://pbs.twimg.com/profile_images/1245084668069924866/-DRI-sZi_400x400.jpg',
'https://pbs.twimg.com/profile_images/1350144832350597124/pZ5ykSgo_400x400.jpg',
message: `MobX feels so robust and leverages the Dart language very well.
Brazil's community was previously attached to BLoC. With MobX, they have found a great replacement.
Expand All @@ -75,7 +75,7 @@ Several people here in Brazil are building Flutter apps quickly, thanks to MobX.
title:
'Mobile app maker in ❤️ with Flutter & Figma & Firebase | @JintoApp co-founder | @FlutterRennes',
photoUrl:
'https://pbs.twimg.com/profile_images/1177279072810033152/R7NHj6M1_400x400.jpg',
'https://pbs.twimg.com/profile_images/1352225937065127936/HvZ47bKL_400x400.jpg',
message: `This framework is just awesome. I ported my Flutter
app to it and everything feels so much simpler now (even if the porting process has not been easy).
Expand Down

0 comments on commit 79d5597

Please sign in to comment.