Skip to content

Commit 1969bc0

Browse files
committed
Fixed visual bugs in example.
1 parent e189384 commit 1969bc0

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

example/lib/widgets.dart

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ class CharacteristicTile extends StatelessWidget {
210210
title: new ListTile(
211211
title: title,
212212
subtitle: new Text(characteristic.value.toString()),
213+
contentPadding: EdgeInsets.all(0.0),
213214
),
214215
trailing: actions,
215216
children: descriptorTiles,
@@ -249,27 +250,26 @@ class DescriptorTile extends StatelessWidget {
249250
],
250251
);
251252
return new ListTile(
252-
title: new ListTile(
253-
title: title,
254-
subtitle: new Text(descriptor.value.toString()),
255-
trailing: new Row(
256-
children: <Widget>[
257-
new IconButton(
258-
icon: new Icon(
259-
Icons.file_download,
260-
color: Theme.of(context).iconTheme.color.withOpacity(0.5),
261-
),
262-
onPressed: onReadPressed,
253+
title: title,
254+
subtitle: new Text(descriptor.value.toString()),
255+
trailing: new Row(
256+
mainAxisSize: MainAxisSize.min,
257+
children: <Widget>[
258+
new IconButton(
259+
icon: new Icon(
260+
Icons.file_download,
261+
color: Theme.of(context).iconTheme.color.withOpacity(0.5),
263262
),
264-
new IconButton(
265-
icon: new Icon(
266-
Icons.file_upload,
267-
color: Theme.of(context).iconTheme.color.withOpacity(0.5),
268-
),
269-
onPressed: onWritePressed,
270-
)
271-
],
272-
),
263+
onPressed: onReadPressed,
264+
),
265+
new IconButton(
266+
icon: new Icon(
267+
Icons.file_upload,
268+
color: Theme.of(context).iconTheme.color.withOpacity(0.5),
269+
),
270+
onPressed: onWritePressed,
271+
)
272+
],
273273
),
274274
);
275275
}

0 commit comments

Comments
 (0)