report_previewer 1.2.0+5 copy "report_previewer: ^1.2.0+5" to clipboard
report_previewer: ^1.2.0+5 copied to clipboard

A Flutter package providing a widget for previewing reports.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:get/get_connect/http/src/utils/utils.dart';
import 'package:get/route_manager.dart';
import 'package:report_previewer/report_previewer.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        // This is the theme of your application.
        //
        // TRY THIS: Try running your application with "flutter run". You'll see
        // the application has a purple toolbar. Then, without quitting the app,
        // try changing the seedColor in the colorScheme below to Colors.green
        // and then invoke "hot reload" (save your changes or press the "hot
        // reload" button in a Flutter-supported IDE, or press "r" if you used
        // the command line to start the app).
        //
        // Notice that the counter didn't reset back to zero; the application
        // state is not lost during the reload. To reset the state, use hot
        // restart instead.
        //
        // This works for code too, not just values: Most code changes can be
        // tested with just a hot reload.
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  // This widget is the home page of your application. It is stateful, meaning
  // that it has a State object (defined below) that contains fields that affect
  // how it looks.

  // This class is the configuration for the state. It holds the values (in this
  // case the title) provided by the parent (in this case the App widget) and
  // used by the build method of the State. Fields in a Widget subclass are
  // always marked "final".

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  final String token =
      "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJwUTYwdnFqRV9jbURibGgwcVBqUnRtMzZ1TlQtRlZlbmpuUjhiN1Z3YzhVIn0.eyJleHAiOjE3NjQzMzM4MzAsImlhdCI6MTc2MzQ2OTgzMCwianRpIjoiZGI1ZTI0M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McbsbuySFSJVxV0sYGUaUT4xVHi3JxnHSpafd8J_yxU55AFyIA-OUgWI3K9kYbdxugZVXF4ncz5uQHUgnSwb5pgQNc6Y_db9ICSoZkBW1v6XxAxw";
  @override
  Widget build(BuildContext context) {
    // This method is rerun every time setState is called, for instance as done
    // by the _incrementCounter method above.
    //
    // The Flutter framework has been optimized to make rerunning build methods
    // fast, so that you can just rebuild anything that needs updating rather
    // than having to individually change instances of widgets.
    return Scaffold(
        // appBar: AppBar(
        //   // TRY THIS: Try changing the color here to a specific color (to
        //   // Colors.amber, perhaps?) and trigger a hot reload to see the AppBar
        //   // change color while the other colors stay the same.
        //   backgroundColor: Colors.black,
        //   // Here we take the value from the MyHomePage object that was created by
        //   // the App.build method, and use it to set our appbar title.
        //   title: const Text(
        //     "OneCB Modules",
        //     style: TextStyle(color: Colors.white),
        //   ),
        // ),
        //     body: TimeDepositSubledger(
        //   // body: TimeDepositLedger(
        //   environment: 'dev',
        //   subdomain: 'cashier',
        //   baseUrl: 'https://cashier.dev-1.onecoopbank.com/gate',
        //   accountNumber: "0170002620",
        //   endpoint: '/api',
        //   token: token,
        //   buttons: [ActionColButton(label: "label", onPress: () {}, icon: "")],
        //   id: "68c34ea698ba2a7de54463d4", //"0170002943",
        //   onBack: () {
        //     Get.back();
        //   },
        // ));
        //     body: TimeDepositLedger(
        //   environment: 'dev',
        //   subdomain: 'cashier',
        //   baseUrl: 'https://cashier.dev-1.onecoopbank.com/gate',
        //   endpoint: '/api',
        //   token: token,
        //   buttons: [ActionColButton(label: "label", onPress: () {}, icon: "")],
        //   accountNumber: "0170002943",
        //   onBack: () {
        //     Get.back();
        //   },
        // ));
        body: ReportsModule(
            environment: 'dev',
            subdomain: 'cashier',
            baseUrl: 'https://cashier.dev-1.onecoopbank.com/gate',
            endpoint: '/api',
            token: token));
    // body: ReportsModule(
    //     environment: 'dev',
    //     subdomain: 'cashier',
    //     baseUrl: 'https://cashier.dev-1.onecoopbank.com/gate',
    //     endpoint: '/api',
    //     token: token));
  }
}
0
likes
0
points
46
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package providing a widget for previewing reports.

License

unknown (license)

Dependencies

banking_reports, data_table_2, flutter, get, google_fonts, http, intl, pdf_render, shimmer

More

Packages that depend on report_previewer