redmi update with image
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
## 0.0.2
|
## 0.0.3
|
||||||
|
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
|||||||
12
README.md
12
README.md
@@ -1,4 +1,4 @@
|
|||||||
# map_camera_location
|
# map_camera_flutter
|
||||||
|
|
||||||
A Flutter package that provides a widget for capturing images with the device camera and retrieving the user's location information.
|
A Flutter package that provides a widget for capturing images with the device camera and retrieving the user's location information.
|
||||||
<br>
|
<br>
|
||||||
@@ -13,18 +13,18 @@ A Flutter package that provides a widget for capturing images with the device ca
|
|||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
To use this package, add `map_camera_location` as a dependency in your `pubspec.yaml` file.
|
To use this package, add `map_camera_flutter` as a dependency in your `pubspec.yaml` file.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
map_camera_location: ^2.0.0
|
map_camera_flutter: ^2.0.0
|
||||||
```
|
```
|
||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
Import the package in your Dart file:
|
Import the package in your Dart file:
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
import 'package:map_camera_location/map_camera_location.dart';
|
import 'package:map_camera_flutter/map_camera_flutter.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
## Permissions
|
## Permissions
|
||||||
@@ -63,7 +63,7 @@ Here's an example of how to use the `MapCameraLocation` widget:
|
|||||||
|
|
||||||
```dart
|
```dart
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:map_camera_location/map_camera_location.dart';
|
import 'package:map_camera_flutter/map_camera_flutter.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
runApp(MyApp());
|
runApp(MyApp());
|
||||||
@@ -75,7 +75,7 @@ class MyApp extends StatelessWidget {
|
|||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
home: Scaffold(
|
home: Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text('Camera Location Demo'),
|
title: Text('Camera with map location'),
|
||||||
),
|
),
|
||||||
body: Center(
|
body: Center(
|
||||||
child: MapCameraLocation(
|
child: MapCameraLocation(
|
||||||
|
|||||||
BIN
assets/Screenshot_2.png
Normal file
BIN
assets/Screenshot_2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.2 MiB |
@@ -6,23 +6,30 @@ import '../../map_camera_flutter.dart';
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
///import 'package:your_app/map_camera_location.dart'; // Import the file where the MapCameraLocation widget is defined
|
///import 'package:your_app/map_camera_flutter.dart'; // Import the file where the MapCameraLocation widget is defined
|
||||||
|
|
||||||
/// ```
|
/// ```
|
||||||
/// void main() {
|
/// void main() {
|
||||||
/// runApp(MyApp());
|
/// final cameras = await availableCameras();
|
||||||
|
/// final firstCamera = cameras.first;
|
||||||
|
/// runApp(MyApp(camera: firstCamera));
|
||||||
/// }
|
/// }
|
||||||
///
|
///
|
||||||
/// class MyApp extends StatelessWidget {
|
/// class MyApp extends StatelessWidget {
|
||||||
|
/// final CameraDescription camera;
|
||||||
|
/// const MyApp({super.key, required this.camera});
|
||||||
|
///
|
||||||
/// @override
|
/// @override
|
||||||
/// Widget build(BuildContext context) {
|
/// Widget build(BuildContext context) {
|
||||||
/// return MaterialApp(
|
/// return MaterialApp(
|
||||||
/// home: CameraLocationScreen(),
|
/// home: CameraLocationScreen(camera: firstCamera),
|
||||||
/// );
|
/// );
|
||||||
/// }
|
/// }
|
||||||
/// }
|
/// }
|
||||||
///
|
///
|
||||||
/// class CameraLocationScreen extends StatelessWidget {
|
/// class CameraLocationScreen extends StatelessWidget {
|
||||||
|
/// final CameraDescription camera;
|
||||||
|
/// const MyApp({super.key, required this.camera});
|
||||||
// // Callback function to handle the captured image and location data
|
// // Callback function to handle the captured image and location data
|
||||||
/// void handleImageAndLocationData(ImageAndLocationData data) {
|
/// void handleImageAndLocationData(ImageAndLocationData data) {
|
||||||
// // You can use the data here as needed
|
// // You can use the data here as needed
|
||||||
@@ -37,7 +44,7 @@ import '../../map_camera_flutter.dart';
|
|||||||
/// Widget build(BuildContext context) {
|
/// Widget build(BuildContext context) {
|
||||||
/// // Provide the CameraDescription and the handleImageAndLocationData callback function to the MapCameraLocation widget
|
/// // Provide the CameraDescription and the handleImageAndLocationData callback function to the MapCameraLocation widget
|
||||||
/// return MapCameraLocation(
|
/// return MapCameraLocation(
|
||||||
/// camera: YOUR_CAMERA_DESCRIPTION_OBJECT, // Replace YOUR_CAMERA_DESCRIPTION_OBJECT with your actual CameraDescription
|
/// camera: camera, // YOUR_CAMERA_DESCRIPTION_OBJECT, // Replace YOUR_CAMERA_DESCRIPTION_OBJECT with your actual CameraDescription
|
||||||
/// onImageCaptured: handleImageAndLocationData,
|
/// onImageCaptured: handleImageAndLocationData,
|
||||||
/// );
|
/// );
|
||||||
/// }
|
/// }
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: map_camera_flutter
|
name: map_camera_flutter
|
||||||
description: The MapCameraLocation package provides a convenient way to capture images with map and location data using the device's camera.
|
description: The MapCameraLocation package provides a convenient way to capture images with map and location data using the device's camera.
|
||||||
|
|
||||||
version: 0.0.2
|
version: 0.0.3
|
||||||
homepage: https://github.com/Always-Bijoy/map_camera_location_flutter
|
homepage: https://github.com/Always-Bijoy/map_camera_location_flutter
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Reference in New Issue
Block a user