diff --git a/lib/ui/face_search_results_page.dart b/lib/ui/face_search_results_page.dart index f5c676580..d9ad03f2b 100644 --- a/lib/ui/face_search_results_page.dart +++ b/lib/ui/face_search_results_page.dart @@ -9,11 +9,9 @@ import 'package:photos/ui/loading_widget.dart'; class FaceSearchResultsPage extends StatelessWidget { final FaceSearchManager _faceSearchManager = FaceSearchManager.instance; - final Face _face; + final Face face; - FaceSearchResultsPage({Key key, Face face}) - : this._face = face, - super(key: key); + FaceSearchResultsPage(this.face, {Key key}) : super(key: key); @override Widget build(BuildContext context) { @@ -24,7 +22,7 @@ class FaceSearchResultsPage extends StatelessWidget { CircularNetworkImageWidget( Configuration.instance.getHttpEndpoint() + "/" + - _face.thumbnailPath, + face.thumbnailPath, 20), ], ), @@ -36,7 +34,7 @@ class FaceSearchResultsPage extends StatelessWidget { FutureBuilder> _getBody() { return FutureBuilder>( - future: _faceSearchManager.getFaceSearchResults(_face), + future: _faceSearchManager.getFaceSearchResults(face), builder: (context, snapshot) { if (snapshot.hasData) { return Gallery(