パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.0.8

firebase_excel_export

カスタムヘッダーとデータマッピングをサポートする、FirestoreコレクションをExcelにエクスポートするFlutterパッケージ。

AndroidiOSmacOSWindows
30日間ダウンロード
71
いいね数
6
Pub ポイント
145

パッケージをインストール

flutter pub add firebase_excel_export

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

FirestoreコレクションからExcelファイル(XLSX、ODS)へのデータエクスポートを可能にするFlutterパッケージで、カスタムヘッダーと柔軟なデータマッピングをサポートしています。構造化されたFirestoreドキュメントを一般的なオフィスツールと互換性のあるスプレッドシート形式に変換することで、データ共有およびレポート作成を簡素化します。このパッケージはAndroid、iOS、macOS、Windows向けのFlutterアプリにシームレスに統合でき、オフラインでのデータエクスポートや管理レポート機能を必要とするアプリケーションに最適です。

用途

  • ユーザー データを 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 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。