Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Commit f24f8a6

Browse files
committed
use better inference icon
1 parent ba649d5 commit f24f8a6

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

flutter-app/lib/datasets_list.dart

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class DatasetActions extends StatelessWidget {
194194
}
195195

196196
return Padding(
197-
padding: const EdgeInsets.only(left: 16.0),
197+
padding: const EdgeInsets.symmetric(horizontal: 16.0),
198198
child: Row(
199199
mainAxisAlignment: MainAxisAlignment.spaceBetween,
200200
children: <Widget>[
@@ -238,16 +238,21 @@ class DatasetActions extends StatelessWidget {
238238
),
239239
new Row(
240240
children: <Widget>[
241-
modelExists
242-
? IconButton(
243-
color: Colors.blueGrey,
244-
icon: Icon(Icons.camera_alt),
245-
tooltip: 'Run inference on an image',
246-
onPressed: () async {
247-
await _beginModelInferenceAsync(context);
248-
},
249-
)
250-
: Container(),
241+
if (modelExists)
242+
Container(
243+
child: IconButton(
244+
color: Colors.blueGrey,
245+
icon: Icon(Icons.center_focus_weak),
246+
tooltip: 'Run inference on an image',
247+
onPressed: () async {
248+
await _beginModelInferenceAsync(context);
249+
},
250+
),
251+
decoration: BoxDecoration(
252+
border: Border.all(color: Colors.black12, width: 1.0),
253+
shape: BoxShape.circle,
254+
),
255+
)
251256
],
252257
)
253258
],

0 commit comments

Comments
 (0)