@@ -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}
0 commit comments