report_previewer 1.2.1+6 copy "report_previewer: ^1.2.1+6" to clipboard
report_previewer: ^1.2.1+6 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.eyJleHAiOjE3NjYyOTg1MzUsImlhdCI6MTc2NTQzNDUzNSwianRpIjoiYzNkMDg3YmM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MEXl1l3Kam1U3RMVhAAWt87ALVQBDciX0VqzTSul-34qmn2Orc3VdrhRwLBsg7MODs03dOx6HOFljjL_qnQWNu_V8kMnepgJQ37GvWTNaL-aQLJeL273QbjeFGBA";
  @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
55
points
40
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package providing a widget for previewing reports.

Documentation

API reference

License

MIT (license)

Dependencies

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

More

Packages that depend on report_previewer