Add maps in home screen
This commit is contained in:
parent
58fe47675c
commit
bef323c92e
3 changed files with 23 additions and 0 deletions
20
lib/components/location.dart
Normal file
20
lib/components/location.dart
Normal file
|
@ -0,0 +1,20 @@
|
|||
// import 'package:flutter/material.dart';
|
||||
// import 'package:google_maps_flutter/google_maps_flutter.dart';
|
||||
|
||||
// class Location extends StatelessWidget {
|
||||
// const Location({
|
||||
// Key? key,
|
||||
// }) : super(key: key);
|
||||
|
||||
// Widget build(BuildContext context) {
|
||||
// return Container(
|
||||
// child: GoogleMap(
|
||||
// mapType: MapType.normal,
|
||||
// initialCameraPosition: CameraPosition(
|
||||
// target: LatLng(3.595196, 98.672226),
|
||||
// zoom: 14.0,
|
||||
// ),
|
||||
// ),
|
||||
// );
|
||||
// }
|
||||
// }
|
|
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
|||
|
||||
import 'package:nekoya_flutter/components/bannerimage.dart';
|
||||
import 'package:nekoya_flutter/components/carousel.dart';
|
||||
import 'package:nekoya_flutter/components/location.dart';
|
||||
import 'package:nekoya_flutter/components/new_arrival_products.dart';
|
||||
import 'package:nekoya_flutter/components/newsletter.dart';
|
||||
import 'package:nekoya_flutter/components/popular_products.dart';
|
||||
|
@ -51,6 +52,7 @@ class Home extends StatelessWidget {
|
|||
),
|
||||
const Bannerimage(),
|
||||
const PopularProducts(),
|
||||
//const Location(),
|
||||
const Newsletter(),
|
||||
],
|
||||
),
|
||||
|
|
|
@ -44,6 +44,7 @@ dependencies:
|
|||
page_transition: ^2.0.5
|
||||
shared_preferences: ^2.0.13
|
||||
universal_html: ^2.0.8
|
||||
#google_maps_flutter: ^2.1.5
|
||||
|
||||
dev_dependencies:
|
||||
flutter_lints: ^2.0.1
|
||||
|
|
Loading…
Add table
Reference in a new issue