google_markers #6

Merged
maze6343 merged 9 commits from google_markers into master 2022-05-16 11:36:32 +02:00
4 changed files with 169 additions and 3 deletions
Showing only changes of commit 5666bc9185 - Show all commits

View File

@ -290,7 +290,7 @@
"languageVersion": "2.16" "languageVersion": "2.16"
} }
], ],
"generated": "2022-05-04T19:48:27.028722Z", "generated": "2022-05-05T14:17:04.931527Z",
"generator": "pub", "generator": "pub",
"generatorVersion": "2.16.2" "generatorVersion": "2.16.2"
} }

View File

@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_native_splash","path":"/Users/marahzeibak/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_native_splash-2.1.6/","dependencies":[]},{"name":"google_maps_flutter","path":"/Users/marahzeibak/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-2.1.4/","dependencies":[]}],"android":[{"name":"flutter_native_splash","path":"/Users/marahzeibak/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_native_splash-2.1.6/","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"/Users/marahzeibak/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.5/","dependencies":[]},{"name":"google_maps_flutter","path":"/Users/marahzeibak/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-2.1.4/","dependencies":["flutter_plugin_android_lifecycle"]}],"macos":[],"linux":[],"windows":[],"web":[{"name":"flutter_native_splash","path":"/Users/marahzeibak/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_native_splash-2.1.6/","dependencies":[]}]},"dependencyGraph":[{"name":"flutter_native_splash","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"google_maps_flutter","dependencies":["flutter_plugin_android_lifecycle"]}],"date_created":"2022-05-04 21:48:28.266701","version":"2.10.4"} {"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_native_splash","path":"/Users/marahzeibak/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_native_splash-2.1.6/","dependencies":[]},{"name":"google_maps_flutter","path":"/Users/marahzeibak/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-2.1.4/","dependencies":[]}],"android":[{"name":"flutter_native_splash","path":"/Users/marahzeibak/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_native_splash-2.1.6/","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"/Users/marahzeibak/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.5/","dependencies":[]},{"name":"google_maps_flutter","path":"/Users/marahzeibak/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-2.1.4/","dependencies":["flutter_plugin_android_lifecycle"]}],"macos":[],"linux":[],"windows":[],"web":[{"name":"flutter_native_splash","path":"/Users/marahzeibak/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_native_splash-2.1.6/","dependencies":[]}]},"dependencyGraph":[{"name":"flutter_native_splash","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"google_maps_flutter","dependencies":["flutter_plugin_android_lifecycle"]}],"date_created":"2022-05-05 16:17:06.043862","version":"2.10.4"}

View File

@ -3,7 +3,7 @@
# #
# For more info see: https://dart.dev/go/dot-packages-deprecation # For more info see: https://dart.dev/go/dot-packages-deprecation
# #
# Generated by pub on 2022-05-04 21:48:27.012099. # Generated by pub on 2022-05-05 16:17:04.914104.
archive:file:///Users/marahzeibak/flutter/.pub-cache/hosted/pub.dartlang.org/archive-3.3.0/lib/ archive:file:///Users/marahzeibak/flutter/.pub-cache/hosted/pub.dartlang.org/archive-3.3.0/lib/
args:file:///Users/marahzeibak/flutter/.pub-cache/hosted/pub.dartlang.org/args-2.3.0/lib/ args:file:///Users/marahzeibak/flutter/.pub-cache/hosted/pub.dartlang.org/args-2.3.0/lib/
async:file:///Users/marahzeibak/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.8.2/lib/ async:file:///Users/marahzeibak/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.8.2/lib/

166
lib/venuePage.dart Normal file
View File

@ -0,0 +1,166 @@
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
// Color _backgroundColor = const Color(0xffac7b84);
class VenuePage extends StatelessWidget {
final String imageLink = '';
const VenuePage({Key? key}) : super(key: key);
validateAndGetImageLink() {
if (imageLink == '') {
return 'https://live.staticflickr.com/6205/6081773215_19444220b6_b.jpg';
} else {
return imageLink;
}
}
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: const Color(0xfffceff9),
appBar: AppBar(
title: const Text('My Venue'),
backgroundColor: const Color(0xffac7b84),
),
body: Center(
child: Container(
alignment: Alignment.center,
child: Column(children: <Widget>[
Row(
children: const [
ShareButton(),
SavePlaceButton(),
],
),
Row(children: [
Expanded(
child: Image.network(validateAndGetImageLink()),
),
]),
Row(
children: const [
Text(
'Placeholder for image',
),
],
),
const AboutTheSpotTable(),
GridView.count(
crossAxisCount: 2,
children: [],
)
]),
),
),
);
}
}
//Just an example table
class AboutTheSpotTable extends StatelessWidget {
const AboutTheSpotTable({
Key? key,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return DataTable(
headingRowHeight: 30,
columnSpacing: 100,
dataRowHeight: 30,
dataTextStyle: GoogleFonts.robotoCondensed(
color: const Color(0xff4F6272),
),
columns: [
DataColumn(
label: Text('About the spot',
style: GoogleFonts.roboto(
textStyle: const TextStyle(
fontSize: 18,
)))),
const DataColumn(label: Text('', style: TextStyle())),
],
rows: const [
DataRow(cells: [
DataCell(Text('Type of venue')),
DataCell(Text('Saloon')),
]),
DataRow(cells: [
DataCell(Text('Pricing')),
DataCell(Text('\$\$\$')),
]),
DataRow(cells: [
DataCell(Text('Rating')),
DataCell(Text('4.2/5')),
]),
DataRow(cells: [
DataCell(Text('Current activity')),
DataCell(Text('Moderate')),
]),
DataRow(cells: [
DataCell(Text('Opening hours')),
DataCell(Text('11:00-23:00')),
]),
],
);
}
}
// @override
// Widget build(BuildContext context) {
// return Scaffold(
// backgroundColor: const Color(0xfffceff9),
// appBar: AppBar(
// title: const Text('My Venue'),
// backgroundColor: _backgroundColor,
// ),
// body: Row(
// children: const <Widget>[
// ShareButton(),
// SavePlaceButton(),
// ],
// ));
// }
// }
class SavePlaceButton extends StatelessWidget {
const SavePlaceButton({
Key? key,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Expanded(
child: TextButton.icon(
onPressed: () {},
icon: const Icon(
Icons.favorite,
color: Colors.red,
),
label: const Text('Save place'),
style: TextButton.styleFrom(
primary: Color(0xff4f6272),
),
),
);
}
}
class ShareButton extends StatelessWidget {
const ShareButton({
Key? key,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Expanded(
child: TextButton.icon(
onPressed: () {},
icon: const Icon(Icons.share),
label: const Text('Share'),
),
);
}
}