패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.0.8

firebase_excel_export

사용자 정의 헤더와 데이터 매핑을 지원하는 Firestore 컬렉션을 Excel로 내보내는 Flutter 패키지입니다.

AndroidiOSmacOSWindows
30일 다운로드
71
좋아요
6
Pub 점수
145

패키지 설치

flutter pub add firebase_excel_export

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Firestore 컬렉션의 데이터를 사용자 지정 헤더와 유연한 데이터 매핑을 지원하는 XLSX, ODS 형식의 엑셀 파일로 내보내는 데 도움이 되는 플러터 패키지입니다. 구조화된 Firestore 문서를 일반 사무용 도구와 호환되는 스프레드시트 형식으로 변환함으로써 데이터 공유 및 보고서 작성 과정을 간소화합니다. 이 패키지는 안드로이드, iOS, macOS, 윈도우를 대상으로 하는 플러터 앱에 원활하게 통합되어 오프라인 데이터 내보내기 또는 관리 보고 기능이 필요한 애플리케이션에 이상적입니다.

사용 사례

  • 사용자 데이터를 Excel로 내보내기
  • Firestore 컬렉션에서 보고서 생성
  • 다운로드 가능한 분석 시트 만들기
  • 외부 스프레드시트와 앱 데이터 동기화
  • 비즈니스 워크플로우를 위한 데이터 내보내기 자동화

주요 기능

  • 사용자 정의 가능한 열 헤더
  • 유연한 데이터 필드 매핑
  • XLSX 및 ODS 형식 지원
  • 크로스 플랫폼 호환성
  • Firestore 쿼리와의 간단한 통합

적합한 대상

  • 관리자 대시보드
  • 데이터 마이그레이션 도구
  • 비즈니스 인텔리전스 앱
  • Flutter 앱에서의 보고 기능
  • 오프라인 데이터 접근이 필요한 팀

고려 사항

  • Firebase Firestore 설정이 필요합니다
  • 문서 수준 내보내기만 가능
  • Excel 파일과 실시간 동기화 없음
  • 수동 내보내기 트리거 필요
  • 큰 데이터 세트에서는 파일 크기가 커질 수 있습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Firebase Excel Export

A Flutter package to export Firestore collections to Excel with a simple and customizable approach. Perfect for Flutter web applications!

Features

  • Export Firestore data directly to .xlsx files.
  • Fully customizable headers and data mapping.
  • Easy integration with Firestore.
  • Designed for Flutter web applications with seamless file download functionality.

Installation

Add the package to your pubspec.yaml file:

dependencies:
  firebase_excel_export: ^0.0.1

Run the following command to fetch the package:

flutter pub get

Usage

Basic Example
import 'package:firebase_excel_export/firebase_excel_export.dart';

Future<void> exportUsers() async {
  await FirebaseExcelExporter.exportToExcel(
    collectionName: 'users',
    headers: ['Email', 'Name', 'Phone Number'], // Customize your headers
    mapper: (data) => [
      data['email'],       // Map Firestore fields to the headers
      data['name'],
      data['phoneNumber'],
    ],
    fileName: 'users_export.xlsx', // Optional: Customize file name
  );
}
Parameters
  • collectionName (required): The Firestore collection to export.
  • headers (required): A list of custom headers for the Excel file.
  • mapper (required): A function to map Firestore document fields to header columns.
  • fileName (optional): The desired file name for the Excel file (default: export.xlsx).
Advanced Example with Query Filtering
Future<void> exportFilteredUsers() async {
  await FirebaseExcelExporter.exportToExcel(
    collectionName: 'users',
    headers: ['Email', 'Name', 'Status'], // Define custom headers
    mapper: (data) => [
      data['email'],       // Map data fields dynamically
      data['name'],
      data['status'],
    ],
    queryBuilder: (query) => query.where('status', isEqualTo: 'active'), // Apply Firestore query
    fileName: 'active_users_export.xlsx', // Define a custom file name
  );
}

Key Features

  1. Dynamic Headers: Define custom headers tailored to your Firestore data.
  2. Data Mapping: Map fields dynamically to headers for total flexibility.
  3. Web-Optimized: Built for Flutter web to enable seamless downloads.

Compatibility

This package is designed for Flutter web and depends on:

  • cloud_firestore
  • firebase_core
  • excel
  • universal_html

Ensure these dependencies are added to your pubspec.yaml.

Support

If you encounter any issues or have feature requests, feel free to open an issue on the GitHub repository.

License

This package is licensed under the MIT License. See the LICENSE file for more details.

카테고리

의존성

의존성 목록 6 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.