v8.1.0dropdown_search
Um menu suspenso do Flutter simples, reativo e altamente personalizável com muitos recursos (pesquisa, plataformas de popups, assíncrono/síncrono, etc.) em modo múltiplo como menu, diálogo, bottomSheet, entre outros.
Conecta agricultores a empresas, permitindo que eles vendam diretamente seus produtos aos compradores
v8.1.0Um menu suspenso do Flutter simples, reativo e altamente personalizável com muitos recursos (pesquisa, plataformas de popups, assíncrono/síncrono, etc.) em modo múltiplo como menu, diálogo, bottomSheet, entre outros.
Um plugin de geocodificação do Flutter que fornece recursos fáceis de geocodificação e geocodificação reversa.
v1.2.0O pacote contém animações bonitas de tempo. Configuração fácil com o configurador de clima!
v1.3.0+1Campo de pesquisa suspensa personalizável que estende as funcionalidades do DropdownButton, TextFormField e Autocomplete.
v3.0.0Barra de classificação personalizada para o flutter com suporte a ícones personalizados, ícones meio, direções, alinhamentos e muito mais.
{"sdk":"flutter"}^1.0.8^3.11.0^5.4.2^5.6.3^3.0.0^1.1.2+2^2.0.0^0.18.0^1.3.0^9.0.1^3.0.0^1.1.1^0.14.3{"sdk":"flutter"}^4.0.0Texto original em inglês. Visite o GitHub para a versão atual.
Farm Mate is a Flutter-based mobile app designed to connect farmers with businesses, enabling them to sell crops directly to buyers. Below is a breakdown of the various components and features used in the app:
Flutter is the primary framework used for building the app. It provides a fast and efficient way to develop natively compiled applications for mobile, web, and desktop from a single codebase.
Firebase is used for backend services in Farm Mate. It provides real-time databases, authentication, cloud storage, and other services that make it easier to develop the app.
The app leverages location-based features to connect farmers and businesses based on proximity.
Farm Mate integrates real-time weather updates to help farmers check the weather conditions for their area.
The Farmer Dashboard provides farmers with a comprehensive interface to manage their crops. Farmers can:
The Buyer Dashboard is designed for businesses (buyers) to browse available crops. Buyers can:
The app uses Firebase Authentication to securely manage user logins. Both farmers and businesses can:
The app uses the Geolocator and Geocoding packages to provide:
Ensure you have the following installed:
git clone https://github.com/yourusername/farmmate.git
cd farmmate
flutter pub get
lib/ApiKey.dart and replace the placeholder:const String apiKey = 'YOUR_API_KEY_HERE';
The Farm Mate app uses Firebase for:
dependencies:
firebase_auth: ^3.3.4
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
runApp(MyApp());
}
Future<User?> signUp(String email, String password) async {
try {
UserCredential userCredential = await FirebaseAuth.instance
.createUserWithEmailAndPassword(email: email, password: password);
return userCredential.user;
} catch (e) {
print("Error: $e");
return null;
}
}
Future<User?> signIn(String email, String password) async {
try {
UserCredential userCredential = await FirebaseAuth.instance
.signInWithEmailAndPassword(email: email, password: password);
return userCredential.user;
} catch (e) {
print("Error: $e");
return null;
}
}
farmers, buyers, crops.dependencies:
cloud_firestore: ^3.1.5
FirebaseFirestore firestore = FirebaseFirestore.instance;
Future<void> addUserData(String userId, String collection, Map<String, dynamic> data) async {
try {
await firestore.collection(collection).doc(userId).set(data);
} catch (e) {
print("Error: $e");
}
}
Future<void> addCropData(String cropId, Map<String, dynamic> cropData) async {
try {
await firestore.collection('crops').doc(cropId).set(cropData);
} catch (e) {
print("Error: $e");
}
}
Future<QuerySnapshot> getCrops() async {
return await firestore.collection('crops').get();
}
git checkout -b feature-branch).git commit -m 'Add new feature').git push origin feature-branch).This project is licensed under the MIT License.
For queries or collaborations, contact amoghreddykb1@gmail.com.