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

Commit 2137926

Browse files
committed
More breathing room on datasets list page
1 parent b3a914e commit 2137926

File tree

3 files changed

+60
-60
lines changed

3 files changed

+60
-60
lines changed

flutter-app/lib/camera.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ class _CameraState extends State<Camera> {
8686
return Scaffold(
8787
key: _scaffoldKey,
8888
appBar: AppBar(
89-
backgroundColor: Theme.of(context).accentColor,
9089
title: Text('Capture sample for ${widget.label}'),
9190
),
9291
body: Container(
@@ -409,7 +408,6 @@ class _CameraControlWidgetState extends State<CameraControlWidget> {
409408
Widget build(BuildContext context) {
410409
final recordVideoButton = IconButton(
411410
icon: Icon(Icons.videocam),
412-
color: Theme.of(context).accentColor,
413411
iconSize: 40,
414412
onPressed: () {
415413
widget.onRecordingStart();
@@ -423,7 +421,6 @@ class _CameraControlWidgetState extends State<CameraControlWidget> {
423421
final takePictureButton = IconButton(
424422
icon: Icon(Icons.camera_alt),
425423
iconSize: 40,
426-
color: Theme.of(context).accentColor,
427424
onPressed: widget.onPictureTaken,
428425
);
429426

flutter-app/lib/datasets_list.dart

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -70,25 +70,25 @@ class DatasetsList extends StatelessWidget {
7070
children: filteredDatasets
7171
.map(
7272
(dataset) => new Container(
73-
decoration: new BoxDecoration(
74-
border: Border(
75-
bottom: BorderSide(color: Colors.grey[300])),
76-
),
77-
height: 80,
78-
child: InkWell(
79-
onTap: () {
80-
Navigator.push(
81-
context,
82-
MaterialPageRoute(
83-
builder: (context) =>
84-
new ListLabelsScreen(dataset),
85-
),
86-
);
87-
},
88-
child:
89-
new DatasetActions(dataset, model, scaffoldKey),
90-
),
91-
),
73+
decoration: new BoxDecoration(
74+
border: Border(
75+
bottom: BorderSide(color: Colors.grey[300])),
76+
),
77+
height: 100,
78+
child: InkWell(
79+
onTap: () {
80+
Navigator.push(
81+
context,
82+
MaterialPageRoute(
83+
builder: (context) =>
84+
new ListLabelsScreen(dataset),
85+
),
86+
);
87+
},
88+
child: new DatasetActions(
89+
dataset, model, scaffoldKey),
90+
),
91+
),
9292
)
9393
.toList());
9494
}
@@ -234,7 +234,7 @@ class DatasetActions extends StatelessWidget {
234234
],
235235
),
236236
Padding(
237-
padding: const EdgeInsets.symmetric(vertical: 4.0),
237+
padding: const EdgeInsets.symmetric(vertical: 8.0),
238238
child: Row(
239239
children: <Widget>[
240240
new Text(

flutter-app/lib/labelscreen.dart

Lines changed: 40 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -235,38 +235,38 @@ class _ListLabelsScreenState extends State<ListLabelsScreen> {
235235
return PopupMenuButton<Actions>(
236236
onSelected: onPopupMenuItemClicked,
237237
itemBuilder: (BuildContext context) => <PopupMenuEntry<Actions>>[
238-
const PopupMenuItem(
239-
child: Text('Train model'),
240-
value: Actions.trainModel,
241-
),
242-
const PopupMenuItem(
243-
child: Text('View Collaborators'),
244-
value: Actions.viewCollaborators,
245-
),
246-
const PopupMenuItem(
247-
child: Text('View Past Operations'),
248-
value: Actions.viewPastOperations,
249-
),
250-
PopupMenuItem(
251-
child: widget.dataset.isPublic
252-
? Text('Make private')
253-
: Text('Make public'),
254-
value: Actions.changeVisiblity,
255-
),
256-
const PopupMenuItem(
257-
child: Text('Export to Firebase'),
258-
value: Actions.exportToFirebase,
259-
),
260-
const PopupMenuItem(
261-
child: Text('Show bucket path'),
262-
value: Actions.copyGCSPath,
263-
),
264-
const PopupMenuDivider(),
265-
const PopupMenuItem(
266-
child: Text('Delete Dataset'),
267-
value: Actions.deleteDataset,
268-
),
269-
],
238+
const PopupMenuItem(
239+
child: Text('Train model'),
240+
value: Actions.trainModel,
241+
),
242+
const PopupMenuItem(
243+
child: Text('View Collaborators'),
244+
value: Actions.viewCollaborators,
245+
),
246+
const PopupMenuItem(
247+
child: Text('View Past Operations'),
248+
value: Actions.viewPastOperations,
249+
),
250+
PopupMenuItem(
251+
child: widget.dataset.isPublic
252+
? Text('Make private')
253+
: Text('Make public'),
254+
value: Actions.changeVisiblity,
255+
),
256+
const PopupMenuItem(
257+
child: Text('Export to Firebase'),
258+
value: Actions.exportToFirebase,
259+
),
260+
const PopupMenuItem(
261+
child: Text('Show bucket path'),
262+
value: Actions.copyGCSPath,
263+
),
264+
const PopupMenuDivider(),
265+
const PopupMenuItem(
266+
child: Text('Delete Dataset'),
267+
value: Actions.deleteDataset,
268+
),
269+
],
270270
);
271271
}
272272

@@ -482,10 +482,10 @@ class LabelEntry extends StatelessWidget {
482482
context,
483483
MaterialPageRoute(
484484
builder: (context) => new ListLabelSamples(
485-
dataset,
486-
labelKey,
487-
labelName,
488-
),
485+
dataset,
486+
labelKey,
487+
labelName,
488+
),
489489
),
490490
);
491491
}
@@ -624,6 +624,8 @@ class _TrainModelPricingDialogState extends State<TrainModelPricingDialog> {
624624
child: Slider(
625625
value: trainingBudget.toDouble(),
626626
max: 10.0,
627+
activeColor: Colors.deepPurple,
628+
inactiveColor: Colors.grey[200],
627629
min: 1.0,
628630
divisions: 10,
629631
onChanged: (v) {
@@ -648,7 +650,7 @@ class _TrainModelPricingDialogState extends State<TrainModelPricingDialog> {
648650
children: [
649651
TextSpan(
650652
text: " Firebase pricing page ",
651-
style: TextStyle(color: Colors.blueAccent),
653+
style: TextStyle(color: Colors.deepPurple),
652654
),
653655
TextSpan(text: "for details")
654656
],
@@ -669,6 +671,7 @@ class _TrainModelPricingDialogState extends State<TrainModelPricingDialog> {
669671
child: const Text("CANCEL"),
670672
),
671673
new RaisedButton(
674+
color: Colors.deepPurple,
672675
onPressed: () {
673676
Navigator.pop(context, trainingBudget);
674677
},

0 commit comments

Comments
 (0)