add mapbox
This commit is contained in:
@@ -17,6 +17,7 @@ import '../classes/events.dart';
|
||||
|
||||
import 'ListItemMenu.dart';
|
||||
import 'ListItemByTags.dart';
|
||||
import 'MapboxPages.dart';
|
||||
import 'ListItemByOrganizers.dart';
|
||||
|
||||
void main() {
|
||||
@@ -105,8 +106,7 @@ class _ItemMenuState extends State<ItemMenu> with ShowErrorDialog {
|
||||
stderr.writeln('Username : ${responseGet.body}');
|
||||
var events = jsonDecode(utf8.decode(responseGet.bodyBytes));
|
||||
formerName = events["name"];
|
||||
formerMap =
|
||||
"${events["place"]} - ${events["zip_code"]} ${events["city"]} - ${events["country"]}";
|
||||
formerMap = "${events["place"]}";
|
||||
formerDesc = events["description"];
|
||||
formerTags = List<String>.from(events['tags'] as List);
|
||||
formerOrga = List<String>.from(events['organizers'] as List);
|
||||
@@ -240,10 +240,17 @@ class _ItemMenuState extends State<ItemMenu> with ShowErrorDialog {
|
||||
]),
|
||||
Row(children: [
|
||||
Flexible(
|
||||
child: Text("${place}",
|
||||
style: TextStyle(fontSize: 15.0),
|
||||
maxLines: 3,
|
||||
overflow: TextOverflow.ellipsis))
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (_) => Mapboxpages(title: '$place')));
|
||||
},
|
||||
child: Text("${place}",
|
||||
style: TextStyle(fontSize: 15.0),
|
||||
maxLines: 3,
|
||||
overflow: TextOverflow.ellipsis)))
|
||||
]),
|
||||
Row(children: [
|
||||
Icon(Icons.group),
|
||||
|
Reference in New Issue
Block a user