image2pdf_flutter 1.0.0 copy "image2pdf_flutter: ^1.0.0" to clipboard
image2pdf_flutter: ^1.0.0 copied to clipboard

A Flutter plugin that convert images to PDF.

example/lib/main.dart

// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';

import 'package:image2pdf_flutter/image_to_pdf.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await ImageToPdfMain.initValue();

  Configuration.instance!.editDocumentNameTextStyle = Configuration
      .instance!.editDocumentNameTextStyle!
      .copyWith(fontSize: 14, color: Colors.black);

  Configuration.instance!.cameraIconBgColor = Colors.black;
  // Configuration.instance!.cameraIcon = Icon(Icons.add, size: 80);

  runApp(ImageToPdfMain(pdfPathCallBack: (String pdfPath) {}));
}