Skip to content

Commit 17ef9a3

Browse files
committed
Fix formatting
1 parent 4c66650 commit 17ef9a3

2 files changed

Lines changed: 35 additions & 36 deletions

File tree

packages/device_info_plus/device_info_plus/example/lib/main.dart

Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -237,44 +237,42 @@ class _MyAppState extends State<MyApp> {
237237
home: Scaffold(
238238
appBar: AppBar(title: Text(_getAppBarTitle()), elevation: 4),
239239
body: ListView(
240-
children:
241-
_deviceData.keys.map((String property) {
242-
return Row(
243-
children: <Widget>[
244-
Container(
245-
padding: const EdgeInsets.all(10),
246-
child: Text(
247-
property,
248-
style: const TextStyle(fontWeight: FontWeight.bold),
249-
),
240+
children: _deviceData.keys.map((String property) {
241+
return Row(
242+
children: <Widget>[
243+
Container(
244+
padding: const EdgeInsets.all(10),
245+
child: Text(
246+
property,
247+
style: const TextStyle(fontWeight: FontWeight.bold),
248+
),
249+
),
250+
Expanded(
251+
child: Container(
252+
padding: const EdgeInsets.symmetric(vertical: 10),
253+
child: Text(
254+
'${_deviceData[property]}',
255+
maxLines: 10,
256+
overflow: TextOverflow.ellipsis,
250257
),
251-
Expanded(
252-
child: Container(
253-
padding: const EdgeInsets.symmetric(vertical: 10),
254-
child: Text(
255-
'${_deviceData[property]}',
256-
maxLines: 10,
257-
overflow: TextOverflow.ellipsis,
258-
),
259-
),
260-
),
261-
],
262-
);
263-
}).toList(),
258+
),
259+
),
260+
],
261+
);
262+
}).toList(),
264263
),
265264
),
266265
);
267266
}
268267

269-
String _getAppBarTitle() =>
270-
kIsWeb
271-
? 'Web Browser info'
272-
: switch (defaultTargetPlatform) {
273-
TargetPlatform.android => 'Android Device Info',
274-
TargetPlatform.iOS => 'iOS Device Info',
275-
TargetPlatform.linux => 'Linux Device Info',
276-
TargetPlatform.windows => 'Windows Device Info',
277-
TargetPlatform.macOS => 'MacOS Device Info',
278-
TargetPlatform.fuchsia => 'Fuchsia Device Info',
279-
};
268+
String _getAppBarTitle() => kIsWeb
269+
? 'Web Browser info'
270+
: switch (defaultTargetPlatform) {
271+
TargetPlatform.android => 'Android Device Info',
272+
TargetPlatform.iOS => 'iOS Device Info',
273+
TargetPlatform.linux => 'Linux Device Info',
274+
TargetPlatform.windows => 'Windows Device Info',
275+
TargetPlatform.macOS => 'MacOS Device Info',
276+
TargetPlatform.fuchsia => 'Fuchsia Device Info',
277+
};
280278
}

packages/package_info_plus/package_info_plus_platform_interface/lib/method_channel_package_info.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import 'package:package_info_plus_platform_interface/package_info_data.dart';
33

44
import 'package_info_platform_interface.dart';
55

6-
const MethodChannel _channel =
7-
MethodChannel('dev.fluttercommunity.plus/package_info');
6+
const MethodChannel _channel = MethodChannel(
7+
'dev.fluttercommunity.plus/package_info',
8+
);
89

910
/// An implementation of [PackageInfoPlatform] that uses method channels.
1011
class MethodChannelPackageInfo extends PackageInfoPlatform {

0 commit comments

Comments
 (0)