h-1.flutter.0/lib/widgets/invoice_form/invoice_form_variant.dart
2026-03-04 14:55:40 +09:00

35 lines
1,015 B
Dart
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import 'package:flutter/material.dart';
import '../../models/invoice_models.dart';
class InvoiceFormVariant {
const InvoiceFormVariant({
required this.id,
required this.title,
required this.defaultDocumentType,
this.heroDescription,
this.heroIcon,
});
final String id;
final String title;
final DocumentType defaultDocumentType;
final String? heroDescription;
final IconData? heroIcon;
static const InvoiceFormVariant billingDocs = InvoiceFormVariant(
id: 'billing_docs',
title: 'A1:伝票入力',
defaultDocumentType: DocumentType.invoice,
heroDescription: '既存のA1伝票見積/納品/請求/領収)を作成できます',
heroIcon: Icons.receipt_long,
);
static const InvoiceFormVariant salesSlip = InvoiceFormVariant(
id: 'sales_slip',
title: '売上伝票入力',
defaultDocumentType: DocumentType.invoice,
heroDescription: '売上伝票として販売実績を登録します',
heroIcon: Icons.point_of_sale,
);
}