kar_erp_next 0.0.3 copy "kar_erp_next: ^0.0.3" to clipboard
kar_erp_next: ^0.0.3 copied to clipboard

Flutter package to connect to ERPNext instance and provide all functionalities

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:kar_erp_next/kar_erp_next.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 MaterialApp(
      title: 'Kar ERPNext Demo',
      home: const MyHomePage(title: 'Kar ERPNext Home'),
    );
  }
}

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

  final String title;

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

class _MyHomePageState extends State<MyHomePage> {
  String myERPNextInstance = "";
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text(widget.title)),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[KarERPNext(myERPNextInstance, false)],
        ),
      ),
      // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}
0
likes
140
points
42
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter package to connect to ERPNext instance and provide all functionalities

Homepage
Repository (GitHub)

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on kar_erp_next