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

Change the example code to match the code description #9088

Merged
merged 5 commits into from
Jul 25, 2023
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
6 changes: 3 additions & 3 deletions examples/layout/lakes/step4/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ class MyApp extends StatelessWidget {
);

// #docregion textSection
Widget textSection = const Padding(
padding: EdgeInsets.all(32),
child: Text(
Widget textSection = Container(
padding: const EdgeInsets.all(32),
child: const Text(
'Lake Oeschinen lies at the foot of the Blüemlisalp in the Bernese '
'Alps. Situated 1,578 meters above sea level, it is one of the '
'larger Alpine Lakes. A gondola ride from Kandersteg, followed by a '
Expand Down
6 changes: 3 additions & 3 deletions examples/layout/lakes/step5/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ class MyApp extends StatelessWidget {
);

// #docregion textSection
Widget textSection = const Padding(
padding: EdgeInsets.all(32),
child: Text(
Widget textSection = Container(
padding: const EdgeInsets.all(32),
child: const Text(
'Lake Oeschinen lies at the foot of the Blüemlisalp in the Bernese '
'Alps. Situated 1,578 meters above sea level, it is one of the '
'larger Alpine Lakes. A gondola ride from Kandersteg, followed by a '
Expand Down
6 changes: 3 additions & 3 deletions examples/layout/lakes/step6/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ class MyApp extends StatelessWidget {
],
);

Widget textSection = const Padding(
padding: EdgeInsets.all(32),
child: Text(
Widget textSection = Container(
padding: const EdgeInsets.all(32),
child: const Text(
'Lake Oeschinen lies at the foot of the Blüemlisalp in the Bernese '
'Alps. Situated 1,578 meters above sea level, it is one of the '
'larger Alpine Lakes. A gondola ride from Kandersteg, followed by a '
Expand Down
6 changes: 3 additions & 3 deletions src/ui/layout/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,9 @@ declaration:

<?code-excerpt "lib/main.dart (textSection)" title?>
```dart
Widget textSection = const Padding(
padding: EdgeInsets.all(32),
child: Text(
Widget textSection = Container(
padding: const EdgeInsets.all(32),
child: const Text(
'Lake Oeschinen lies at the foot of the Blüemlisalp in the Bernese '
'Alps. Situated 1,578 meters above sea level, it is one of the '
'larger Alpine Lakes. A gondola ride from Kandersteg, followed by a '
Expand Down
Loading