Skip to content

Commit b4de344

Browse files
authored
Update buttons.md (#11691)
Two colons were missing in the flutter docs, Whoever wrote those docs needs to be fired, this is not acceptable. _Description of what this PR is changing or adding, and why:_ This is the most important PR ever... Literally just two colons that were missing. _Issues fixed by this PR (if any):_ Fixed two missing colons. _PRs or commits this PR depends on (if any):_ ## Presubmit checklist - [x] This PR is marked as draft with an explanation if not meant to land until a future stable release. - [x] This PR doesn’t contain automatically generated corrections (Grammarly or similar). - [x] This PR follows the [Google Developer Documentation Style Guidelines](https://developers.google.com/style) — for example, it doesn’t use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first person). - [x] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer.
1 parent 6c75b32 commit b4de344

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/release/breaking-changes/buttons.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ like a default `FlatButton`:
228228

229229
```dart
230230
final ButtonStyle flatButtonStyle = TextButton.styleFrom(
231-
foregroundColor Colors.black87,
231+
foregroundColor: Colors.black87,
232232
minimumSize: Size(88, 36),
233233
padding: EdgeInsets.symmetric(horizontal: 16),
234234
shape: const RoundedRectangleBorder(
@@ -248,7 +248,7 @@ Similarly, to make an `ElevatedButton` look like a default `RaisedButton`:
248248
```dart
249249
final ButtonStyle raisedButtonStyle = ElevatedButton.styleFrom(
250250
foregroundColor: Colors.black87,
251-
backgroundColor Colors.grey[300],
251+
backgroundColor: Colors.grey[300],
252252
minimumSize: Size(88, 36),
253253
padding: EdgeInsets.symmetric(horizontal: 16),
254254
shape: const RoundedRectangleBorder(

0 commit comments

Comments
 (0)