[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the improved code_excerpt_updater #2098

Merged
merged 1 commit into from
Dec 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
name: analyzer
url: "https://pub.dartlang.org"
source: hosted
version: "0.34.0"
version: "0.34.1"
args:
dependency: transitive
description:
Expand Down Expand Up @@ -90,10 +90,10 @@ packages:
description:
path: "."
ref: HEAD
resolved-ref: cd401f6a308460f4ef5e4bb6c8f085f72f2f04a3
resolved-ref: "5305683bb92431bddf5f9b682ffbf5927bfda6cf"
url: "https://github.com/chalin/code_excerpt_updater.git"
source: git
version: "0.12.0"
version: "0.15.0"
code_excerpter:
dependency: "direct dev"
description:
Expand Down Expand Up @@ -123,7 +123,7 @@ packages:
name: convert
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.2"
version: "2.1.1"
crypto:
dependency: transitive
description:
Expand Down Expand Up @@ -158,7 +158,7 @@ packages:
name: front_end
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.7"
version: "0.1.8"
glob:
dependency: transitive
description:
Expand Down Expand Up @@ -221,7 +221,7 @@ packages:
name: kernel
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.7"
version: "0.3.8"
linkcheck:
dependency: "direct dev"
description:
Expand Down Expand Up @@ -319,7 +319,7 @@ packages:
name: shelf
url: "https://pub.dartlang.org"
source: hosted
version: "0.7.3+3"
version: "0.7.4"
shelf_web_socket:
dependency: transitive
description:
Expand Down
18 changes: 6 additions & 12 deletions src/docs/get-started/codelab.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,11 @@ packages, on [the Package site](https://pub.dartlang.org/flutter).
`pubspec.yaml`, add `english_words` (3.1.0 or higher) to the dependencies
list:

<?code-excerpt "1-base/pubspec.yaml" diff-with="2-use-package/pubspec.yaml" from="dependencies" to="english"?>
{% diff from="dependencies" %}
<?code-excerpt "1-base/pubspec.yaml" diff-with="2-use-package/pubspec.yaml" diff-u="4" from="dependencies" to="english"?>
{% diff %}
--- 1-base/pubspec.yaml
+++ 2-use-package/pubspec.yaml
@@ -2,10 +2,13 @@
description: A startup-namer app.
version: 1.0.0+1

@@ -5,8 +5,9 @@
dependencies:
flutter:
sdk: flutter
Expand Down Expand Up @@ -367,7 +364,7 @@ a child inside the existing `MyApp` stateless widget.
return MaterialApp(
title: 'Welcome to Flutter',
home: Scaffold(
@@ -14,9 +13,27 @@
@@ -14,9 +13,22 @@
title: Text('Welcome to Flutter'),
),
body: Center(
Expand Down Expand Up @@ -522,14 +519,11 @@ lazily, on demand.
5. In the `MyApp` class, update the `build()` method by changing the title, and
changing the home to be a `RandomWords` widget:

<?code-excerpt "3-stateful-widget/lib/main.dart" diff-with="4-infinite-list/lib/main.dart" from="class MyApp" to="}"?>
<?code-excerpt "3-stateful-widget/lib/main.dart" diff-with="4-infinite-list/lib/main.dart" diff-u="4" from="class MyApp" to="}"?>
{% diff %}
--- 3-stateful-widget/lib/main.dart
+++ 4-infinite-list/lib/main.dart
@@ -3,36 +3,68 @@

void main() => runApp(MyApp());

@@ -6,26 +6,49 @@
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
Expand Down