From 35b4123902fca772467ad5b38dff676e0fd713b3 Mon Sep 17 00:00:00 2001 From: pllearns Date: Wed, 8 Jul 2020 15:53:17 -0700 Subject: [PATCH] ui improvement, addressess #39 --- example/ios/Flutter/.last_build_id | 2 +- example/lib/main.dart | 34 ++++++++++++++++++++++-------- 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/example/ios/Flutter/.last_build_id b/example/ios/Flutter/.last_build_id index 4ac3f5c..54b5a75 100644 --- a/example/ios/Flutter/.last_build_id +++ b/example/ios/Flutter/.last_build_id @@ -1 +1 @@ -a76eec88ecaec654001e991c6607031e \ No newline at end of file +8b68aa7d361ee99db4a7ce1e0fd9b322 \ No newline at end of file diff --git a/example/lib/main.dart b/example/lib/main.dart index 55294e4..a6d9076 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -75,17 +75,24 @@ class _MyAppState extends State { Widget _buildTile(DeviceBoundWitness s) { // final fmt = DateFormat("MMMM dd, h:mm a"); - return ListTile( - title: Text( - "${s.parties} - ${s.huerestics}", - softWrap: true, - ), - // subtitle: Text(fmt.format(DateTime.now())), + return Card( + shadowColor: Colors.blue[300], + child: ListTile( + title: Text( + "${s.parties}", + softWrap: true, + ), + subtitle: Text( + "${s.huerestics}", + ), + ),// subtitle: Text(fmt.format(DateTime.now())), ); } Widget _buildDeviceTile(BluetoothDevice s) { - return ListTile( + return Card( + shadowColor: Colors.tealAccent[400], + child: ListTile( title: Text( "${s.family.name} ${s.family.prefix} - ${s.family.uuid} ", overflow: TextOverflow.ellipsis, @@ -98,6 +105,7 @@ class _MyAppState extends State { color: Colors.green, ) : Icon(Icons.link_off), + ), ); } @@ -238,7 +246,11 @@ class _MyAppState extends State { ) ], ), - Text("Detected Devices:"), + Text( + "Detected Devices:", + softWrap: true, + style: TextStyle(fontWeight: FontWeight.bold), + ), Flexible( flex: 1, child: StreamBuilder( @@ -250,7 +262,11 @@ class _MyAppState extends State { }, ), ), - Text("Bound Witnesses for $nodeType"), + Text( + "Bound Witnesses for $nodeType", + softWrap: true, + style: TextStyle(fontWeight: FontWeight.bold), + ), if (_isClient) Flexible( flex: 3,