Skip to content

Commit

Permalink
ui improvement, addressess #39
Browse files Browse the repository at this point in the history
  • Loading branch information
pllearns committed Jul 8, 2020
1 parent 6aab1f7 commit 35b4123
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
2 changes: 1 addition & 1 deletion example/ios/Flutter/.last_build_id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a76eec88ecaec654001e991c6607031e
8b68aa7d361ee99db4a7ce1e0fd9b322
34 changes: 25 additions & 9 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,24 @@ class _MyAppState extends State<MyApp> {
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,
Expand All @@ -98,6 +105,7 @@ class _MyAppState extends State<MyApp> {
color: Colors.green,
)
: Icon(Icons.link_off),
),
);
}

Expand Down Expand Up @@ -238,7 +246,11 @@ class _MyAppState extends State<MyApp> {
)
],
),
Text("Detected Devices:"),
Text(
"Detected Devices:",
softWrap: true,
style: TextStyle(fontWeight: FontWeight.bold),
),
Flexible(
flex: 1,
child: StreamBuilder<BluetoothDevice>(
Expand All @@ -250,7 +262,11 @@ class _MyAppState extends State<MyApp> {
},
),
),
Text("Bound Witnesses for $nodeType"),
Text(
"Bound Witnesses for $nodeType",
softWrap: true,
style: TextStyle(fontWeight: FontWeight.bold),
),
if (_isClient)
Flexible(
flex: 3,
Expand Down

0 comments on commit 35b4123

Please sign in to comment.