Skip to content

Commit

Permalink
Update hello world example to match current behavior (#678)
Browse files Browse the repository at this point in the history
* Update widgets-intro.md

Update hello world example with required textDirection as in examples/hello_world/lib/main.dart

* Update widgets-intro.md

Added space after comma per request and formatting guidelines.

* Reformat with trailing commas
  • Loading branch information
mattrenquist authored and mit-mit committed Nov 15, 2017
1 parent 147afd2 commit f5113a0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion widgets-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@ with a widget:
import 'package:flutter/material.dart';
void main() {
runApp(new Center(child: new Text('Hello, world!')));
runApp(
new Center(
child: new Text(
'Hello, world!',
textDirection: TextDirection.ltr,
),
),
);
}
```

Expand Down

0 comments on commit f5113a0

Please sign in to comment.