image querying from within the frontend
All checks were successful
Build and release debug APK / Build APK (pull_request) Successful in 7m40s
All checks were successful
Build and release debug APK / Build APK (pull_request) Successful in 7m40s
This commit is contained in:
@@ -38,8 +38,6 @@ class _LandmarkCardState extends State<LandmarkCard> {
|
||||
imageUrl: widget.landmark.imageURL ?? '',
|
||||
placeholder: (context, url) => Center(child: CircularProgressIndicator()),
|
||||
errorWidget: (context, error, stackTrace) => Icon(Icons.question_mark_outlined),
|
||||
// TODO: make this a switch statement to load a placeholder if null
|
||||
// cover the whole container meaning the image will be cropped
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
),
|
||||
@@ -103,15 +101,15 @@ class _LandmarkCardState extends State<LandmarkCard> {
|
||||
icon: Icon(Icons.link),
|
||||
label: Text('Website'),
|
||||
),
|
||||
if (widget.landmark.wikipediaURL != null)
|
||||
TextButton.icon(
|
||||
onPressed: () async {
|
||||
// open a browser with the wikipedia link
|
||||
await launchUrl(Uri.parse(widget.landmark.wikipediaURL!));
|
||||
},
|
||||
icon: Icon(Icons.book),
|
||||
label: Text('Wikipedia'),
|
||||
),
|
||||
// if (widget.landmark.wikipediaURL != null)
|
||||
// TextButton.icon(
|
||||
// onPressed: () async {
|
||||
// // open a browser with the wikipedia link
|
||||
// await launchUrl(Uri.parse(widget.landmark.wikipediaURL!));
|
||||
// },
|
||||
// icon: Icon(Icons.book),
|
||||
// label: Text('Wikipedia'),
|
||||
// ),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
Reference in New Issue
Block a user