Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Fix plugin formatting #667

Merged
merged 2 commits into from
Jul 17, 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
4 changes: 2 additions & 2 deletions packages/device_info/lib/device_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class DeviceInfoPlugin {
///
/// See: https://developer.android.com/reference/android/os/Build.html
Future<AndroidDeviceInfo> get androidInfo async =>
_cachedAndroidDeviceInfo ??= AndroidDeviceInfo
._fromMap(await channel.invokeMethod('getAndroidDeviceInfo'));
_cachedAndroidDeviceInfo ??= AndroidDeviceInfo._fromMap(
await channel.invokeMethod('getAndroidDeviceInfo'));

/// This information does not change from call to call. Cache it.
IosDeviceInfo _cachedIosDeviceInfo;
Expand Down
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
4 changes: 2 additions & 2 deletions packages/google_maps_flutter/example/lib/map_ui.dart
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ class MapUiBodyState extends State<MapUiBody> {
Column(
children: <Widget>[
Text('camera bearing: ${_position.bearing}'),
Text(
'camera target: ${_position.target.latitude.toStringAsFixed(4)},'
Text('camera target: ${_position.target.latitude
.toStringAsFixed(4)},'
'${_position.target.longitude.toStringAsFixed(4)}'),
Text('camera zoom: ${_position.zoom}'),
Text('camera tilt: ${_position.tilt}'),
Expand Down
3 changes: 2 additions & 1 deletion packages/google_sign_in/lib/widgets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ class GoogleUserCircleAvatar extends StatelessWidget {
if (photoUrl == null) {
// If the user has no profile photo and no display name, fall back to
// the default profile photo as a last resort.
return 'https://lh3.googleusercontent.com/a/default-user=s${size.round()}-c';
return 'https://lh3.googleusercontent.com/a/default-user=s${size
.round()}-c';
}
final Uri profileUri = Uri.parse(photoUrl);
final List<String> pathSegments =
Expand Down
8 changes: 4 additions & 4 deletions packages/path_provider/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ class _MyHomePageState extends State<MyHomePage> {
new Padding(
padding: const EdgeInsets.all(16.0),
child: new RaisedButton(
child: new Text('${Platform.isIOS ?
"External directories are unavailable "
"on iOS":
"Get External Storage Directory" }'),
child: new Text('${Platform.isIOS
? "External directories are unavailable "
"on iOS"
: "Get External Storage Directory"}'),
onPressed:
Platform.isIOS ? null : _requestExternalStorageDirectory,
),
Expand Down
4 changes: 3 additions & 1 deletion packages/shared_preferences/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ class SharedPreferencesDemoState extends State<SharedPreferencesDemo> {
return new Text('Error: ${snapshot.error}');
else
return new Text(
'Button tapped ${snapshot.data} time${ snapshot.data == 1 ? '' : 's' }.\n\n'
'Button tapped ${snapshot.data} time${snapshot.data == 1
? ''
: 's'}.\n\n'
'This should persist across restarts.',
);
}
Expand Down