Skip to content

Commit

Permalink
Fix plugin formatting (flutter#667)
Browse files Browse the repository at this point in the history
* Fix plugin formatting
  • Loading branch information
kroikie authored Jul 17, 2018
1 parent 7ba6eeb commit 4f54f6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/firebase_database/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ class _MyHomePageState extends State<MyHomePage> {
child: new Center(
child: _error == null
? new Text(
'Button tapped $_counter time${ _counter == 1 ? '' : 's' }.\n\n'
'Button tapped $_counter time${_counter == 1
? ''
: 's'}.\n\n'
'This includes all devices, ever.',
)
: new Text(
Expand Down
5 changes: 3 additions & 2 deletions packages/firebase_database/lib/src/firebase_database.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ class FirebaseDatabase {
case 'DoTransaction':
final MutableData mutableData =
new MutableData.private(call.arguments['snapshot']);
final MutableData updated = await _transactions[
call.arguments['transactionKey']](mutableData);
final MutableData updated =
await _transactions[call.arguments['transactionKey']](
mutableData);
return <String, dynamic>{'value': updated.value};
default:
throw new MissingPluginException(
Expand Down

0 comments on commit 4f54f6d

Please sign in to comment.